-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix widget reset bugs #212
Conversation
… of all of them. The culprit was using a iterator loop while removing elements in the list
…ting the WWT traits to default values in the method.
The issues in the tests are real - I think the problem is that |
There are about 10 different traits inherited from the DOM widget or one of its ancestors where trying to restore them to a default value will cause an exception to be thrown ( We could iterate over and reset the traits that are specifically defined in the base widget class, instead of all of the traits that a widget has. |
Yes, though we should make sure we are sub-class friendly too in case anyone ever defines traits in a subclass. |
The most general/transparent solution I can think of is to add a |
Adding |
That sounds like a good solution to me too! AppVeyor CI failure is an issue of antialiasing and color intensity (opacity?) of overdrawn lines in the Python 3.6 build. Presumably unrelated to this PR. Travis CI failures are due to an error in @astrofrog OK to go ahead and merge? |
One of the Travis failure (3.5) is due to the incompatibility of pytest 4.5 and pytest-remotedata 0.3.0 (Relevant issue: astropy/pytest-remotedata#37). Can we make sure it grabs remotedata 0.3.1 or later going forward? |
@jsub1 Hmm, not sure why it's pulling in the older version, but let's try forcing >= 0.3.1 and see what happens ... I just added a commit to your branch doing so. |
Hmm, on Linux/Py35 it says that it's using remotedata 0.3.1 but the errors are still happening. |
Same general deal as in the previous commit.
Oh, looks like we need pytest-cov >= 2.6.1 as well. Commit pushed. |
Codecov Report
@@ Coverage Diff @@
## master #212 +/- ##
==========================================
+ Coverage 57.74% 57.76% +0.02%
==========================================
Files 24 24
Lines 1692 1693 +1
==========================================
+ Hits 977 978 +1
Misses 715 715
Continue to review full report at Codecov.
|
Aha! The Travis CI doesn't use conda-forge to source packages, while AppVeyor does. I think these various issues have been due to getting older versions of packages from the more conservative Anaconda Since AppVeyor uses conda-forge and we've just added pywwt to conda-forge, I've tried adding it to the Travis configuration here. Hopefully this will make these issues go away. And in recent runs, the GitBook issue has disappeared, meaning that the only CI problem left should be the AppVeyor/Py36 issue. I hope. |
OK! The only Travis issue was a transient link-checking issue, so we've at least made progress on the CI front. @astrofrog look OK? |
Fixes a couple of issues I found in the reset method: