-
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
Added dragging for dynamic spectrum updating. #707
Conversation
Build failure seems unrelated. Will this hurt usability for larger datasets with a noticeable lag when updating the spectrum? |
Good point about large datasets. Maybe makes sense that it follows the same modifier key as the selection dragging? And no clue as to the build issue. But can investigate if no one else has a clue either. |
@stscieisenhamer - yes, I think for consistency we should use the same modifier key here. |
(not) Thinking out loud and attempting to generalize this a bit: If Control-drag == scrub, then maybe a double modifier, such as Shift-Control-Drag == scrub-with-update. |
Just throwing ideas out there: I seem to recall gaia (the spectral datacube viewer, not the telescope) had a checkbox that toggled whether dragging an ROI triggered continuous auto-updating or not. Ginga uses a lot of keyboard modifiers, but they tend to display status messages along the lines of "hold down control to auto-update". |
The build failures seem unrelated, so I wouldn't worry about them |
@stscieisenhamer - can you rebase? This should fix the failures. The rebase should be easy since there are no conflicts. |
@astrofrog So, to completely show how I mess this up: As per standard procedure, I do the fetch and the rebase:
What I had been doing was a Thoughts? |
@stscieisenhamer - what is the output of |
|
@stscieisenhamer - actually this all looks fine! You can now force push to here:
You should definitely not run |
Done! So that would be my failing. BTW I did try the |
@stscieisenhamer - thanks! I like the ability to press control and drag the selection, but I don't think the spectrum needs updating while it's being drawn because of the performance considerations. Maybe you could direct the callback to an intermediate function that only then calls |
Just to clarify: You mean by "drawn" in the sense of the creation of the region. Only do the updating when the region exists and is then being dragged. Correct? If so, this makes sense. |
@stscieisenhamer - yes, that is correct. |
@stscieisenhamer - looks good, thanks! I'll add a changelog entry. |
Added dragging for dynamic spectrum updating.
Just because it was dirt simple, added dynamic spectrum extraction while dragging ROI in the spectrum tool.