-
Notifications
You must be signed in to change notification settings - Fork 75
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: Recreate JWST MJD-OBS if it is missing #1004
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1004 +/- ##
==========================================
- Coverage 72.63% 72.45% -0.19%
==========================================
Files 74 74
Lines 5576 5590 +14
==========================================
Hits 4050 4050
- Misses 1526 1540 +14 ☔ View full report in Codecov by Sentry. |
The missing coverage is because I don't have permission to include the original offending data file into unit test. I can add one more test here with dummy header but I am not if it is worth it. What do you think? |
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.
This looks good and works well!
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.
This looks good to me. When I tested it locally, the ERR and DQ extensions do not load in Cubeviz for me. I remember this problem from before and I thought we fixed it? In any case that is a separate issue than this one.
If we already have the framework for testing against fake files, then I might add some tests for this. But if it's a lot of extra work to create that framework, then I'm ok not having those tests.
Re: ERR and DQ -- I think they stopped working after #547 (transition from spectral-cube to specutils). I can see if I can make them load without too much extra code here. Re: tests -- AFAIK, this is the only thing being tested in the tests for Cubeviz parser. In this patch, I already removed MJD-OBS from it to mimic your problem (though I didn't add in OBSGEO). A more proper way to test is to make fake small test files to ship with the test suite but I am afraid it will be more involved and probably out of scope here.
|
Too late for your test data (i.e., we still need this workaround for now) but Nadia put a patch to astropy at astropy/astropy#12598 . FYI. |
"latest dev" job failure is unrelated. Looks like something changed upstream:
|
@havok2063 , can you please review again? All the extensions you care about should load now. |
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.
Tested again. All looks good to me.
Description
This pull request is to recreate missing MJD-OBS for JWST data so it will load into Cubeviz.
Proper GWCS support is not possible currently due to glue-viz/glue-astronomy#59 (the cube would load but it chokes on 1D spectrum part).
With this patch:
Fixes #690
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
?