Closed drlaw1558 closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.99%. Comparing base (
af5aefb
) to head (acfc8e8
). Report is 4 commits behind head on main.:exclamation: Current head acfc8e8 differs from pull request most recent head 9bab0bc. Consider uploading reports for the commit 9bab0bc to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Will you add a CI test to
test_ramp_fitting.py
for non-zero average dark current?
I just added one; I haven't done much with pytest before though so let me know if you think it needs to be tweaked.
Will you add a CI test to
test_ramp_fitting.py
for non-zero average dark current?I just added one; I haven't done much with pytest before though so let me know if you think it needs to be tweaked.
It looks fine. Just something to test what the expected values should be, so it will fail if any changes are made to the way the dark current is used the test will fail. I'll approve this PR now.
Started regtest run at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1404/
Regression test results show what I'm guessing are expected differences in the SCI, ERR, and VAR_POISSON arrays in rate/rateints files, which then propagate to later products. So I think this looks OK.
This PR addresses the issue in JP-3463 where the addition of an average dark current to the poisson variance calculation step results in incorrect SCI array values for NIRSpec. This PR adjusts the method of dealing with negative slopes and all-zero variance special cases. Tested against two sets of MIRI data and one set of NIRSpec, and is working as intended both with and without specifying the new parameter.
Resolves JP-3463
Checklist
CHANGES.rst
(either inBug Fixes
orChanges to API
)