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

[BUG] Mosviz: 1D/2D spectrum viewer x-axis links are buggy #802

Closed
rosteen opened this issue Aug 24, 2021 · 3 comments · Fixed by #852
Closed

[BUG] Mosviz: 1D/2D spectrum viewer x-axis links are buggy #802

rosteen opened this issue Aug 24, 2021 · 3 comments · Fixed by #852
Labels
bug Something isn't working 🔥 Critical mosviz

Comments

@rosteen
Copy link
Collaborator

rosteen commented Aug 24, 2021

Description

The Mosviz helper class has methods that update the x-axis of the 1D spectrum viewer when the 2D viewer is updated (via panning or zooming) and vice-versa. This mostly works at the moment, but the warning I put in to tell the user not to pan too far away from the data is getting too easily triggered for some reason, to the point that it sometimes ends up constantly flashing on the screen while using Mosviz. I suspect that it may be due to the axis-syncing triggering too aggressively when a new row is clicked and trying to sync unrelated data. There is also a small chance that this is a cause of the 2D data sometimes not loading/displaying correctly in the 2D spectrum viewer. This issue is to improve the spectral axis syncing code to ensure that the warning does not display when not needed, and to ensure that this isn't interfering with other functionality in the app.

Reproducing the bug should be as simple as running the MosvizNIRISSExample notebook and clicking on a couple rows of data.

A screenshot of the over-eager warning is attached:
Screen Shot 2021-08-24 at 10 56 43 AM

Additional context

🐱

@rosteen rosteen added mosviz feature Feature request bug Something isn't working and removed feature Feature request labels Aug 24, 2021
@rosteen rosteen changed the title [FEAT] Mosviz: 1D/2D spectrum viewer x-axis links are buggy [BUG] Mosviz: 1D/2D spectrum viewer x-axis links are buggy Aug 24, 2021
@pllim
Copy link
Contributor

pllim commented Aug 24, 2021

@astrofrog said something about how the 2D spectrum viewer only needs to find out which pixels correspond to the 1D spectrum viewer wavelength limit and set it accordingly in pixel space.

@pllim pllim added the 🔥 Critical label Aug 24, 2021
@ojustino
Copy link
Contributor

I'll note that this is an equal-opportunity bug: I see the same with MosvizExample.ipynb and another NIRSpec notebook Patrick made for a Mosviz hack hour.

mariobuikhuizen added a commit to mariobuikhuizen/jdaviz that referenced this issue Sep 9, 2021
mariobuikhuizen added a commit to mariobuikhuizen/jdaviz that referenced this issue Sep 14, 2021
mariobuikhuizen added a commit to mariobuikhuizen/jdaviz that referenced this issue Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔥 Critical mosviz
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants