-
Notifications
You must be signed in to change notification settings - Fork 174
JP-3553: Update background step handling of multi-ints exposures #8326
8000New 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
Regression test started at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1252 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8326 +/- ##
==========================================
+ Coverage 75.15% 75.38% +0.22%
==========================================
Files 470 474 +4
Lines 38604 38904 +300
==========================================
+ Hits 29014 29326 +312
+ Misses 9590 9578 -12
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Regtest run had 2 unrelated failures. So this PR is clean. |
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 good, just suggesting to slightly modify changelog wording
Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
Resolves JP-3553
Closes #8313
This PR updates the background subtraction step to make it more flexible in handling multi-integration background exposures (rateints files). Previously, the way the code was implemented, it was necessary to have NINTS be the same for the science exposure and all of the background exposures. This update allows the background exposures to have any value of NINTS and still be used correctly to form a mean background, which is subsequently subtracted from every integration of the science exposure. The problem with the previous code was that it was allocating internal arrays for working with the background images based on the shape of the science data, so if they different NINTS, the shape is wrong. This update simply allocates the internal background arrays based on the shape of each background image.
I've also incorporated the data that originally triggered this work into a new form of the existing regression test that runs the background step on multi-integration exposures. All of the necessary input and truth files have been uploaded to Artifactory and the updated test runs successfully on my local branch.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR