-
Notifications
You must be signed in to change notification settings - Fork 25
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
restore column units on cast #242
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #242 +/- ##
==========================================
+ Coverage 64.78% 64.82% +0.04%
==========================================
Files 103 103
Lines 5688 5695 +7
==========================================
+ Hits 3685 3692 +7
Misses 2003 2003 ☔ View full report in Codecov by Sentry. |
fb33f11
to
da3472a
Compare
Regression tests started at: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1084/
which points towards truth files that haven't been updated yet for #200 |
da3472a
to
3dd1cfd
Compare
@jemorrison I can't seem to request you as a reviewer but thanks again for testing out this PR and confirming that it fixed your issue. Please feel free to review/comment on the PR if you have a chance to give it a look. |
Looks reasonable to me and it works. |
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.
LGTM
There have been a couple rounds of regtest truth file updates over the past few days, so it might be worthwhile to run this PR branch again, one last time. |
OK, now that this has been merged, I'll just kick off a regular RT run, which will use stdatamodels/master. |
Thanks! Sorry for the quick draw on the merge. |
Regtest run https://plwishmaster.stsci.edu:8081/job/RT/job/JWST/2686/ shows only unrelated failures/errors. So this looks good (at least it does no obvious harm). |
Resolves JP-3482
Closes [spacetelescope/jwst#8109]
When a
DataModel
containing a table extension is loaded from a FITS file, stdatamodels currently discards the units defined in theTUNITS
headers. This is due to a_cast
from a FITS_rec to a ndarray (to protect against the numerous gotchas in FITS_rec):stdatamodels/src/stdatamodels/properties.py
Line 86 in b7eada9
then a conversion back to a FITS_rec to allow jwst code to continue to interact with a FITS_rec:
stdatamodels/src/stdatamodels/properties.py
Line 89 in b7eada9
This PR is an alternative to #238 and a stop-gap measure until #240 can be resolved.
Checklist
CHANGES.rst
(either inBug Fixes
orChanges to API
)