-
Notifications
You must be signed in to change notification settings - Fork 153
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
Fixes to profile viewer #2233
Fixes to profile viewer #2233
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2233 +/- ##
==========================================
+ Coverage 88.02% 88.04% +0.01%
==========================================
Files 247 247
Lines 23164 23172 +8
==========================================
+ Hits 20391 20401 +10
+ Misses 2773 2771 -2
Continue to review full report at Codecov.
|
This should now be consistent with the image viewer: limits are only reset if the reference data changes, not every time a subset or dataset change or are added. This also fixes the home button to correctly reset the y limits.
b157979
to
0a593c8
Compare
This fixes #2223 , right? |
# Make sure the limits don't change if a subset is created or another | ||
# dataset added - they should only change if the reference data is changed | ||
self.viewer.add_data(self.data) | ||
self.viewer.state.x_min = 0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if allclose check is good enough. You know floating point and all that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine as it should literally return the exact same values, there is no math involved :)
# A callback event for reference_data is triggered if the choices change | ||
# but the actual selection doesn't - so we avoid resetting the WCS in | ||
# this case. | ||
if before is after: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this how multiverse is created? 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see!
This fixes three issues with the profile viewer: