-
Notifications
You must be signed in to change notification settings - Fork 74
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
BUG: Cubeviz coordinate display should follow top visible layer #1445
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1445 +/- ##
==========================================
+ Coverage 85.16% 85.20% +0.03%
==========================================
Files 91 91
Lines 8359 8360 +1
==========================================
+ Hits 7119 7123 +4
+ Misses 1240 1237 -3
Continue to review full report at Codecov.
|
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.
LGTM, it would be nice to have the WCS information attached to the result but that's a separate ticket, agreed that this is how it should work here.
Indeed but doesn't appear trivial. It might be a fox hole. See #1025 |
I rebased locally on top of #1400 (merged into main since this PR was opened)... what is the expected behavior when you have a moment map as contours only on top of a cube? Currently it sees the moment map as the top layer and shows those coordinates (which might be the expected/desired behavior, but I could also see the argument that this should display the top image layer). EDIT: whatever the decision, I think the behavior should be consistent between imviz and cubeviz. If the current behavior is intentional or we want to push a possible change to future effort, then I can approve and we can get this in. |
This is the problem of applying features from other viz tools that do not allow multiple layers/opacities combo. We are faced with this same question in Imviz too. Also, same problem with showing "top image" label. I do not know the answer. |
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 defer a decision on handling contours (opened #1458). This is currently consistent with imviz and fixes the immediate bug.
Thanks for the reviews! |
Description
Coordinate display for Cubeviz was added in #1315 . But without this patch, when multiple dataset are loaded into an image viewer, it shows the info from the bottommost layer, not topmost. This is the most apparent when you load a moment map (it currently has no WCS) on top of the flux cube in the flux viewer. You see the moment map displayed but the coordinate display would still show WCS from the flux cube. With this patch, coordinate display will now show correctly.
This was discovered during my investigation of another bug in #1328 .
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?