-
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-3667: Run nsclean step on imprint and background association members #8786
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8786 +/- ##
==========================================
- Coverage 61.76% 61.75% -0.01%
==========================================
Files 377 377
Lines 38743 38750 +7
==========================================
+ Hits 23929 23931 +2
- Misses 14814 14819 +5 ☔ View full report in Codecov by Sentry. |
@hayescr - is this ready for review now? If so, I can merge in the latest and start some regtests. |
@melanieclarke Yes, it's ready for review, I went ahead and took it out of draft. |
This looks good to me! I'm running regression tests here: |
One thing though - we should probably add a note to the docs for nsclean that if background/imprint images are present, they will be corrected with the same parameters as for the science. |
Ah yes, I've added a note to the nsclean documentation pointing this out and explicitly saying that if a user-supplied mask is provided it will be used for all of the association members, but otherwise the masks will be calculated on-the-fly separately for each image. Let me know if that sounds alright. |
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.
Docs look fine, one small fix suggested.
I found a small issue in testing, investigating now.
Co-authored-by: Melanie Clarke <[email protected]>
Co-authored-by: Melanie Clarke <[email protected]>
Thanks for the catch! I had checked the other intermediate file save options and they were saving to different file names, but I had missed checking the --steps.nsclean.save_results option. I tested your suggestion as well and that does the trick. I've incorporated your suggestions now. |
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.
Everything looks good to me now. Local tests on an association with background exposures are succeeding, and the background subtracted image looks much better.
I'll run regtests one more time before merging when some unrelated things are okified, but I think this is good to go.
Thanks Melanie! Sounds good 👍 |
Regtests restarted here: Looking at results from some local runs, I expect to see low-level changes in results downstream of nsclean in the NIRSpec spec2 runs, since the regtests include background members. I see new nsclean files made for the background members, and changes in the science products look like low-level improvements to the 1/f noise, as expected. |
Regtests look as expected: there are some low level changes for NIRSpec spec2 FS and MOS tests at background subtraction and subsequent steps. The remainder of the failures are unrelated. |
Resolves JP-3667
Closes #8591
Run nsclean on imprint and background association members in the spec2 pipeline.
The spec2 pipeline will loop through the imprint and background members in an input association and run each through the nsclean step (if it is not skipped) before performing imprint and background subtraction. This PR is dependent on the changes to add the clean_flicker_noise step in #8669.
Tasks
Build 11.3
(use the latest build if not sure)CHANGES.rst
within the relevant release section (otherwise add theno-changelog-entry-needed
label to this PR)docs/
pageokify_regtests
to update the truth files