JP-4318: Updating Ramp Fitting Tests for New STCAL Slope Computation.#550
JP-4318: Updating Ramp Fitting Tests for New STCAL Slope Computation.#550kmacdonald-stsci wants to merge 11 commits into
Conversation
…he computation of the slope at the various levels.
…gration and exposure level slopes.
|
Regression tests run here: https://github.com/spacetelescope/RegressionTests/actions/runs/26763461997 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #550 +/- ##
==========================================
- Coverage 91.80% 91.78% -0.03%
==========================================
Files 63 63
Lines 8855 8857 +2
==========================================
Hits 8129 8129
- Misses 726 728 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
e41d41d to
dacf486
Compare
4f08758 to
59b3492
Compare
|
In order to properly reflect the weights being used in the optional output data products I think we also need to change: Lines 3191-3192 from: to Lines 3284-3287 from: to Lines 3442-3443 from: to |
drlaw1558
left a comment
There was a problem hiding this comment.
Looks good to me in local testing now; thanks @kmacdonald-stsci !
melanieclarke
left a comment
There was a problem hiding this comment.
Looks like there are a number of unit tests that need updating still.
All the "cases", which tests optional results, were failing due to the change in the weighting computation. They have all been updated and passing now. |
tapastro
left a comment
There was a problem hiding this comment.
I think this PR is good to go, but the paired JWST PR still has some questions. I'll hold off on merging until that one is squared away.
Resolves JP-4318
This PR addresses using the median rate of a pixel, which is computed across all integrations of a pixel, for the computation of the rate and rateint slopes, using the Poisson variance as part of the weights. This should not happen, since this has the effect of later integrations affecting the slope of earlier integrations. To prevent this the weighting during the computation of rate and rateint slopes use only the read noise variance, rather than a combination of both Poisson and read noise variances.
Tasks
docs/pageno-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)changes/<PR#>.breaking.rstnews fragment"git+https://github.com/<fork>/stcal@<branch>")jwstregression testromancalregression test