-
Notifications
You must be signed in to change notification settings - Fork 76
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
spectrum-2d-viewer: set custom toolbar tools #954
Conversation
* to match those in spectrum-viewer (1d and 2d pan/zoom) but only xrange region selection
Codecov Report
@@ Coverage Diff @@
## main #954 +/- ##
==========================================
- Coverage 69.02% 68.90% -0.12%
==========================================
Files 69 69
Lines 4907 4908 +1
==========================================
- Hits 3387 3382 -5
- Misses 1520 1526 +6
Continue to review full report at Codecov.
|
We should probably wait to merge this until the |
After investigating further, it seems that using xrange in the 2d spectrum viewer is leaving the selection tool on "no selection (create new)" whereas the behavior after creating a subset in the 1d spectrum viewer is to immediately select the new subset. Once the xrange in the 2d spectrum viewer is used (actually used to create a subset, not just enabling the tool), this behavior breaks in the 1d spectrum viewer as well. I do think this is separate from #776, but looks very similar to #810 (as moving the selection is creating new subsets since it is not changing from "no selection"). |
Agreed that it looks very similar to #810 which, side note, should have been closed since the bug was fixed on main. I think it was resolved by a glue-jupyter fix. Edit: might have been fixed by @astrofrog in glue-viz/glue-jupyter#256 or glue-viz/glue-jupyter#251, can't recall off the top of my head. |
So... is this okay to merge? |
Yep, I think we decided that this doesn't introduce any new bugs and the syncing issues are out of scope as they also exist in main. So as long as @rosteen doesn't have any objections, I'll consider that as a second approval and merge before end of day. |
Go for it. |
Description
This pull request sets the toolbar tools on the spectrum-2d-viewer (in both mosviz and specviz2d) to match those in spectrum-viewer (1d and 2d pan/zoom, but only xrange region selection). This was a blocker for #776 and confirms that that is still a remaining issue even with xrange subsets.
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
?