-
Notifications
You must be signed in to change notification settings - Fork 32
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
JP-2669: Fixing the NaN and DO_NOT_USE bug. #112
Conversation
Codecov Report
@@ Coverage Diff @@
## main #112 +/- ##
==========================================
- Coverage 72.13% 72.11% -0.03%
==========================================
Files 16 16
Lines 2494 2510 +16
==========================================
+ Hits 1799 1810 +11
- Misses 695 700 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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, including your documentation updates.
Be aware that there's related discussion going on in https://jira.stsci.edu/browse/JP-2692 as to what values to assign to pixels that have no usable data (i.e. NaN vs. zero vs. ???). I believe this is scheduled for Cal WG discussion next week, so this might need updating based on the outcome of that discussion. |
Updating handling NaNs in the rateints product, as well as the DQ flags associated with those NaNs. Updating the change log.
d53abac
to
c5aa144
Compare
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. Very minor comment.
Merging this in order to fix the bug that was leading to incorrect results. If the Cal WG decides later that pixels with no good data should be set to something other than zero, we'll make that change when necessary. |
This was merged without an approval by the Roman team. |
Whoops, my bad! |
I expect this to cause failures for regtests, since it changes NaNs to 0.0 and sets corresponding DQ flag to DO_NOT_USE. |
Updating handling NaNs in the rateints product, as well as the DQ flags associated with those NaNs.
Resolves JP-2669
Closes #
This PR addresses NaNs in the rateints product file and the DQ flags associated with them. In the rateints product, NaNs were present with
Good
DQ flags. They shouldn't be.Further, INS requested no NaNs be present in the rateints file. This PR detects NaNs in the rateints file and sets them to 0.0, then sets the corresponding DQ flag to
DO_NOT_USE
.Lastly, the rateints DQ flags were set considering only
JUMP_DET
andSATURATED
. This has now been changed to considerDO_NOT_USE
as well. Specifically, if all groups in an integration for a pixel are flagged as DO_NOT_USE, the corresponding DQ value will be flagged as DO_NOT_USE.Checklist
CHANGES.rst
(either inBug Fixes
orChanges to API
)