-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adding support for uncertainty extraction to NDDataArray #86
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Update glue_astronomy/translators/nddata.py Co-authored-by: P. L. Lim <[email protected]> Update glue_astronomy/translators/nddata.py Co-authored-by: P. L. Lim <[email protected]>
0795261
to
b735190
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #86 +/- ##
==========================================
+ Coverage 96.99% 97.33% +0.34%
==========================================
Files 17 18 +1
Lines 1296 1351 +55
==========================================
+ Hits 1257 1315 +58
+ Misses 39 36 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Looks good for glue-astronomy/glue_astronomy/translators/spectrum1d.py Lines 275 to 277 in 71ded78
It would be good to cover this consistently, and perhaps add test cases for |
@dhomeier I agree this would be great! For now, the relevant collapse functions I wrote for jdaviz via astropy in |
I see. Would it make sense to have |
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.
Great, thank! I'd still add the tests for the other input types.
Co-authored-by: Derek Homeier <[email protected]>
Will need imports for the other uncertainties; also we may have to compare to |
@dhomeier Done and passing 💯 |
@dhomeier Would you consider this a bugfix, for soon release? We will use it downstream in spacetelescope/jdaviz#2039. |
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.
Looks good to me!
In #81, I added translators for objects in
astropy.nddata
. In this PR, I add support for extracting uncertainties from glueData
objects and translating them into theuncertainty
attr inNDDataArray
objects. This was missing in the previous PR, but should have been there.