-
Notifications
You must be signed in to change notification settings - Fork 174
JP-2803: Propagate asn keywords to resample output products for level 2 processing #6989
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-2803: Propagate asn keywords to resample output products for level 2 processing #6989
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6989 +/- ##
==========================================
+ Coverage 79.27% 79.39% +0.12%
==========================================
Files 414 414
Lines 37478 37481 +3
==========================================
+ Hits 29709 29758 +49
+ Misses 7769 7723 -46
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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 to me.
Could resample_spec have the same issue for the s2d products created from a single input cal file?
Don't forget to run regtests against the PR branch! |
I have a Jenkins-RT run going, but I'll restart now that I've added a line to resample_spec - it looks like the table_name was being added in the style of taking the first contained model keyword values and assigning to the ModelContainer, so I've added a line for the pool_name as well. |
Jenkins run 387 shows 31 failures, all of which are keyword additions due to the new code. |
So this is ready to merge, but I'm going to wait a bit until a regtest run for another recent merge is finished and we have a chance to update truth files for that one (so that the differences don't get mingled together). |
… 2 processing (spacetelescope#6989) * push singleton input asn keywords to ModelContainer * changelog * changelog number * update pool name for resample_spec (cherry picked from commit 097ec29)
Resolves JP-2803
Closes #
This PR adds assignment of
model.meta.asn.pool_name
and{...}.table_name
to level 2b i2d products - this required propagating these keywords through an intermediate ModelContainer in the resample step.There was discussion in the JIRA ticket of propagating values from the first contained model if any ModelContainer was found have no assigned values, but I felt that this covers the issue more cleanly - if there is a need for other behavior, please let me know.
NB: If a user runs e.g.
strun calwebb_image2 some_rate.fits
, the i2d output will have values of 'singleton' for both of these keywords. If using a MAST-provided level2 asn, the values propagate as expected.Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR