-
Notifications
You must be signed in to change notification settings - Fork 170
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-2071: Update ramp_fit to toggle one-group slope calculations #6737
Conversation
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 OK. Just needs a couple minor updates before finalizing.
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. Just a couple of minor docs comments.
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. I guess we have to merge the stcal PR first and then this one?
It occurs to me that the docs for the ramp_fit step will also need to be updated to list this new argument and what it does. |
…ument for the new feature.
I updated the |
Codecov Report
@@ Coverage Diff @@
## master #6737 +/- ##
=======================================
Coverage 74.55% 74.56%
=======================================
Files 413 413
Lines 36421 36440 +19
=======================================
+ Hits 27154 27170 +16
- Misses 9267 9270 +3
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
Failure in CI for oldest dependencies is due to the use of stcal 0.6.0, which does not support the new "suppress_one_group" step param. It is supported in stcal 0.6.1, which is used in the other passing CI tests. |
…etelescope#6737) * Modify step code to add switch for one group suppression and unit tests for the switch . * Adding changes to the change log. * Making changes due to code review. * Making changes due to code review. * Making changes due to code review. * Changing tests for DQ flag computation changes. * Updating the arguments to the ramp fit step to acount for the new argument for the new feature. Co-authored-by: Howard Bushouse <[email protected]>
Closes #6013
Resolves JP-2071
Description
A
suppress_one_group
boolean variable has been added as a parameter to the ramp fitting step class.When true (the default) saturated ramps with only the 0th group being good will be treated as completely saturated ramps. The calculations will be done as if all calculations are saturated, but the DQ flags will be set as if the first group is good, i.e., the pixel DQ will not have DO_NOT_USE set.
When false saturated ramps with only the 0th group being good will be treated as the normal special case of having only one good group.
Many unit tests are expected to fail until the corresponding PR in STCAL has been merged.
Checklist