-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add initial implementation of Imviz #429
Conversation
I'll leave my feedback from your first video demo here, for future reference. It was a great demo. Thanks!
|
I've now tidied things up a lot following improvements in bqplot-image-gl and glue-jupyter and made the various pieces of functionality into tools or baked in to the imviz viewer directly. The example notebook is included here. Note that this now requires the latest stable release of bqplot-image-gl as well as this branch of glue-jupyter: glue-viz/glue-jupyter#213
Yes I guess the difficulty is that if the notebook is long enough one would need to keep scrolling between reading text and the single viewer, so this keeps each example next to the viewers. Also as it is once all the cells are run you can go and run the different examples whereas with a single viewer you can't do that. I think it's just a matter of preference - if you want to reorganize the notebook to have only one viewer, that's ok too.
No but it would be easy to do so I think - for now this section was meant more as a 'joke' in the sense that DS9 used to just add lots of green circles wherever you clicked even if you didn't want it. But we could easily keep track of the regions and have the coordinates accessible to the user, and also have custom markers.
For now yes - at least in the imviz viewer. What use cases are you thinking of?
We can tweak things like this if needed - I'm not sure if astrowidgets would solve this now that we are just going to think of it as an API wrapper. Here I think instead we might want to change the figure margins and move the label down a bit so it falls in the bottom margin. |
I've added a running 'todo' list to the description of this PR. |
If multiple stack items were present and the first had children but not the requested viewer, then find_viewer_item would incorrectly return None instead of checking the next stack item.
New demo video based on this PR: https://www.dropbox.com/s/8zc3iox33s5pw7y/imviz_demo_20200408.mov?dl=0 A couple of quick notes:
|
Replace Imviz in old notebook with MyImviz
notebooks/ImvizExample.ipynb
Outdated
"import matplotlib.pyplot as plt\n", | ||
"\n", | ||
"imviz = ImViz()\n", | ||
"imviz.load_data('jw01072001001_01101_00001_nrcb1_cal.fits')\n", |
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.
Can we replace this with something anyone have access to? Like something in astropy-data
or STScI Box URL thingy?
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.
Done, for now just using data from data.astropy.org and later we could switch to JWST simulated (or actual eventually!) data
Update to PR 429
Re: #429 (comment) I was told by POs that 1D shape isn't a priority right now, so you can ignore me there and stick to 2D regions. |
Also see astrofrog#2 |
Note to self: This blocks https://jira.stsci.edu/browse/JDAT-1406 |
Update dependencies for Imviz
…enabling WCS matching
I've now updated this PR so that the auto-linking happens when the 'match WCS' button is clicked which I think is reasonable. So I think in the interest of moving forward, if the CI passes this can probably be merged and we can open follow-up issues and PRs for your comments @pllim? (merging now means we can then split up the work for the rest) |
@astrofrog , I opened some follow-up issues and assigned to you those you explicitly said you were going to investigate. FYI. |
This is an experimental PR for now and a work in progress, which aims to implement a very simple imviz viewer (one with one viewer and one with two).
EDIT 2 April 2021: Note that this now requires the latest stable release of bqplot-image-gl as well as this branch of glue-jupyter: glue-viz/glue-jupyter#213. Also I've now added a notebook in this PR to demonstrate the features.
Main to-dos:
(I'll update this list as other things come up)
Ticket tracking
Fix #513 , fix #515 , fix #517 , fix #522 , fix #523
Partially address #514 (shows the info but not in the desired way), #518, #519, #520
Close https://jira.stsci.edu/browse/JDAT-1192