-
Notifications
You must be signed in to change notification settings - Fork 169
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-3005: Pixel replacement for flagged pixels before spectral extraction #7398
JP-3005: Pixel replacement for flagged pixels before spectral extraction #7398
Conversation
c42f027
to
e46b916
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #7398 +/- ##
==========================================
- Coverage 77.86% 77.58% -0.28%
==========================================
Files 452 455 +3
Lines 36197 36367 +170
==========================================
+ Hits 28184 28216 +32
- Misses 8013 8151 +138
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
119ef53
to
ae7632f
Compare
This will need rebasing to account for the move of datamodels to stdatamodels. |
6ef0b6c
to
aab3a34
Compare
d9b9b0e
to
5228852
Compare
db5988c
to
e33dddc
Compare
This PR and the associated stdatamodels PR have been updated to use the DQ bit proposed by the working group - bit 28, 'UNRELIABLE_RESET' is being changed to 'FLUX_ESTIMATED', pending reviews on both PRs. No other holds on these updates otherwise, to my knowledge. This PR may need to increment the minimum stdatamodels version once a release is built with the DQflags update. |
e3a9686
to
dff20d6
Compare
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 really nice overall. Just some minor questions and comments.
I don't see any new docs for the |
27dda91
to
5f3b12f
Compare
ff1185d
to
ec38675
Compare
One more (hopefully final!) regtest run started at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/675/, which uses stdatamodels=1.4.0 containing the DQ bit and step status updates. |
All but 2 of the failures in the regtest run are due to the new S_PXREPL keyword appearing in output headers, with the value 'SKIPPED'. The remaining 2 are due to the use of the now obsolete UNRELIABLE_RESET dq value in some old MIRI dark ref files. I'm satisfied and am merging. |
All docstring tests on new PRs now are failing due to this PR. Specifically:
The two problems are in |
@tapastro Can you fix the doc file issues? |
Resolves JP-3005
Closes #
This PR implements an algorithm to estimate values for flagged DO_NOT_USE pixels before spectral extraction takes place. The algorithm creates a median profile from neighboring slices in the dispersed 2d spectrum, then scales the median profile to slice with a bad pixel to estimate its value.
WORK IN PROGRESS: Currently implemented for ImageModel inputs (LRS-FS, others?), and possibly working for MultiSlitModels as well. Testing and coding in progress.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR