Skip to content
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 bug #1931: when creating a new subset, use ReplaceMode #2090

Merged
merged 2 commits into from
Apr 2, 2020

Conversation

specmicp
Copy link
Contributor

When a new subset is created, override the mode to use ReplaceMode.

The user does not have to remember to reset everytime the mode manually. The mode is only temporarily overriden for the creation of the new subset.

@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

Merging #2090 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2090      +/-   ##
==========================================
+ Coverage   87.98%   88.01%   +0.02%     
==========================================
  Files         244      244              
  Lines       22270    22283      +13     
==========================================
+ Hits        19595    19613      +18     
+ Misses       2675     2670       -5     
Impacted Files Coverage Δ
glue/core/command.py 93.82% <100.00%> (+0.14%) ⬆️
glue/viewers/matplotlib/qt/widget.py 78.40% <0.00%> (-3.41%) ⬇️
glue/viewers/profile/layer_artist.py 95.74% <0.00%> (-0.05%) ⬇️
glue/app/qt/application.py 79.69% <0.00%> (+1.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5839048...a8d1bb0. Read the comment docs.

@astrofrog
Copy link
Member

Thanks for the pull request! Unless you have a chance to do this, I will take a look at the test failures early next week to see what we need to fix before merging this.

@specmicp
Copy link
Contributor Author

The first error: "ERROR at setup of TestGlueApplication.test_new_tabs" is I think a problem with upstream: jupyter/jupyter_client#523

The solution to pass the test (at least on my machine) was to downgrade jupyter_client from 6.0.0 to 5.3.4 (available in pip)

@specmicp
Copy link
Contributor Author

the failing test glue/viewers/image/qt/tests/test_data_viewer.py is only failing with matplotlib 3.1.3, not matplotlib 3.1.2

Here is the changelog: https://matplotlib.org/3.1.3/users/whats_new.html

Copy link
Member

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works great, thanks! I just rebased to check that tests pass now.

@astrofrog astrofrog added this to the v0.16.0 milestone Apr 2, 2020
@astrofrog astrofrog merged commit b543aac into glue-viz:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants