-
Notifications
You must be signed in to change notification settings - Fork 174
JP-3447: Interpolate errors for replaced pixels #8504
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
Conversation
# the DO_NOT_USE flag | ||
if ((indq[yindx[ii], xindx[ii]] & self.DO_NOT_USE) | ||
and not (indq[yindx[ii], xindx[ii]] & self.NON_SCIENCE)): | ||
newdq[yindx[ii], xindx[ii]] -= self.DO_NOT_USE |
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 modified this section to preserve any original flags in the replaced pixel, instead of replacing them with FLUX_ESTIMATED only, to bring this algorithm in line with what fit_profile does.
Regression tests started here: But we should re-run them once #8409 is resolved. I will leave this PR at draft until that's done. Edited to add: Results from this run look right, so far. Only MIRI LRS is affected, since it is the only one that has pixel_replace on by default.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8504 +/- ##
==========================================
+ Coverage 58.02% 58.56% +0.54%
==========================================
Files 388 388
Lines 38977 39030 +53
==========================================
+ Hits 22617 22859 +242
+ Misses 16360 16171 -189 ☔ View full report in Codecov by Sentry. |
Merged in changes from #8409. New regression tests started here: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1486/ |
Regression tests look good to me:
I think this is ready for review now; I will take it out of draft. |
Just retested with the merged-in changed from #8409 , and results look good to me. |
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
Resolves JP-3447
Closes #8029
This PR updates the pixel replace method to provide estimated errors, corresponding to the estimated fluxes in replaced pixels. Errors are estimated following the same interpolation scheme as is used on the data (either the minimum gradient method, or profile scaling). Variance components are also similarly updated.
Checklist for PR authors (skip items if you don't have permissions or they are not applicable)
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR