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

Debug Cubeviz batch photometry (backport #3163 onto v3.10.x) #3179

Conversation

rosteen
Copy link
Collaborator

@rosteen rosteen commented Sep 5, 2024

This backports the non-unit-conversion related parts of #3163 to fix Cubeviz batch photometry in 3.10.x.

* Debugging Cubeviz batch photometry

* Fix changing units when in batch mode

* Working on adding cubeviz batch photometry test

* Add simple test

* Codestyle

* Add comment about future changes

* Move changelog to 3.10.4

* Don't convert if display unit hasn't been initialized

* Update test

* Codestyle

* Update jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py

Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>

---------

Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
(cherry picked from commit 19a8f56)
@rosteen rosteen added bug Something isn't working cubeviz plugin Label for plugins common to multiple configurations labels Sep 5, 2024
@rosteen rosteen added this to the 3.10.4 milestone Sep 5, 2024
@github-actions github-actions bot added the imviz label Sep 5, 2024
@pllim pllim added the skip-changelog-checks changelog bot directive label Sep 5, 2024
@pllim pllim changed the title Debug Cubeviz batch photometry (#3163) Debug Cubeviz batch photometry (backport #3163 onto v3.10.x) Sep 5, 2024
@pllim
Copy link
Contributor

pllim commented Sep 5, 2024

Looks like this backport is incomplete. Given we want to release v4.0 soon, is this really worth the trouble?

E fixture 'spectrum1d_cube_fluxunit_jy_per_steradian' not found

@rosteen
Copy link
Collaborator Author

rosteen commented Sep 5, 2024

Looks like this backport is incomplete. Given we want to release v4.0 soon, is this really worth the trouble?

E fixture 'spectrum1d_cube_fluxunit_jy_per_steradian' not found

I'm a step ahead of you, just added that fixture 😁

@rosteen
Copy link
Collaborator Author

rosteen commented Sep 5, 2024

Ahh but there's another failure. Maybe not worth the trouble.

@pllim
Copy link
Contributor

pllim commented Sep 5, 2024

astropy.units.core.UnitConversionError: Unit Jy of uncertainty incompatible with unit Jy / sr of data

Yeah. Not worth it. Thanks for trying!

@pllim pllim closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cubeviz imviz plugin Label for plugins common to multiple configurations skip-changelog-checks changelog bot directive
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants