-
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-3242: Proper Handling of Timing for Final Slope Computation for only 0th Good Group Ramps #173
JP-3242: Proper Handling of Timing for Final Slope Computation for only 0th Good Group Ramps #173
Conversation
…p in the 0th group.
…. This now is keyed off nframes, rather than groupgap.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #173 +/- ##
==========================================
+ Coverage 75.28% 75.42% +0.13%
==========================================
Files 29 29
Lines 5706 5714 +8
==========================================
+ Hits 4296 4310 +14
+ Misses 1410 1404 -6
☔ View full report in Codecov by Sentry. |
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.
Needs a change log entry.
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.
I think this all looks reasonable to me. The real test will be in ... the tests, to see if we get the right answers in real images. If any unit tests use combinations of params (e.g. nframes, frame-time, group-time, etc.) that are nonsensical, I would update them to make them sensical.
Still needs a change log entry and converted out of Draft form. |
… bad definitions for group time.
The tests have been updated. The change log has been updated. And the PR is out of draft form. |
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.
Need another stcal maintainer to approve. Also probably needs a regtest against Roman. @PaulHuwe @mairanteodoro bueller? Who can do this for us? |
Paul is no longer to be tagged on STCAL PR's. I tagged Jon Eisenhamer and Dave Davis. |
It looks like we'll have to update some of our truth files in artifactory before these will pass,
I'll look at this in more detail unless you have some input. You can see the test results at |
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, The changes I see are at the 10E-5 level and are just above our 10E-6 level for tolerance so even with the tests formally failing I don't see an issue with the code.
Resolves JP-3242
This PR addresses special handling of timing for ramps that have only good 0th group in a ramp. The addition of this special case only properly computed the variances. The timing division for the final slope computation still used the group time, which is not correct for certain special cases. All timing divisions have been pushed back to the segment calculations, so there is no longer one final divide. There is also the further subset special case for only 0th good group with the use of ZEROFRAME.
Checklist
CHANGES.rst
(either inBug Fixes
orChanges to API
)