-
Notifications
You must be signed in to change notification settings - Fork 25
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-3736: Add hybrid full-frame boolean to core exposure schema #362
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #362 +/- ##
==========================================
+ Coverage 67.51% 67.52% +0.01%
==========================================
Files 114 114
Lines 5913 5916 +3
==========================================
+ Hits 3992 3995 +3
Misses 1921 1921 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
still waiting on confirmation of what the new header keyword should be |
Does this correspond to the keyword dictionary ticket https://jira.stsci.edu/browse/JWSTKD-571? |
sorry, yes, that is the one |
Looks good to me. Where does this keyword get assigned? |
It will be assigned to uncal files based on the keyword dictionary, is that what you're asking? |
Thanks! Yes. I didn't want to assume (based on the title) that it was defined in the uncal file (and not something derived and defined by the pipeline). Perhaps @tapastro can give the approval as I'm very unfamiliar with the "uncal" formatting and would have more questions (like if this keyword name is already decided or pending discussion on the keyword dictionary ticket, etc). |
There are a ton of regtest failures but Only level 3 products are affected, so this is likely because of the model blender. I'm not entirely sure why the blender picks this up when it's not populated in the level 2 files. @braingram I know you refactored ModelBlender recently, does it check the stdatamodels schemas explicitly or only the header keywords of the inputs? |
ModelBlender does parse the schemas to figure out which attributes to blend and fills missing values with nans. |
ok cool that's what I figured. So @tapastro do you think it's fine to leave as-is? |
I don't fully understand why this behavior exists for the new keyword, but for example cal_step entries don't appear in level 3 products - e.g. when I reprocess a level 3 IFU observation, I don't see an entry for either meta.cal_step.clean_flicker_noise or a FITS entry for 'S_CLNFNS'. |
I see a column for Linking to the column differrence is difficult (because of the length of the log) but opening the "raw logs" and Ctrl+F for
from a Would you share the files you're testing (and the output)? |
You may have to look at the "raw" fits file (or in |
I used that keyword as an example because I was testing on old cal files that don't have the step listed as skipped. Perhaps a better example would be S_FRSTFR - do you also see that listed? I can test locally with a more uniform file. |
Bingo!
|
Ah, I've caught up and now realized my oversight - the test failures are in comparison against the HDRTAB extensions, which in my opinion are of little value - these keywords are not listed in the primary header when they do not have a filled value, so the perceived impact to users (cluttering up the primary header with nonsense NaN values) does not actually exist. I'm fine to merge. |
E.g.:
|
Is that not expected since all of the combined models have that metadata undefined? The model blender docs don't quite cover that exact case: https://jwst-pipeline.readthedocs.io/en/latest/jwst/model_blender/main.html#combined-model-metadata For the table the docs mention that I agree that a column of |
Sorry, the quote is demonstrating what I believe to be intended behavior, and it reinforces my earlier statement that I am fine with the existing PR and its associated test failures. My misunderstanding was that the keyword was being "blended" into the main header despite not existing in the input headers, leading to spurious nan entries in the primary header. This is not the case, so I don't have any issues. |
If I had any change to suggest, it would be that we could improve usability of the HDRTAB extension by removing any column that is only nan-filled, but that is low priority and perhaps tricky to implement if we ever expect actual nan values. I don't believe we do, but there could be an exception lurking. |
Resolves JP-3736
Closes spacetelescope/jwst#8766
This PR adds a header keyword
HYBRIDFF
to indicate if the new hybrid readout mode was used for a NIRSpec MSA target acquisition.Tasks
docs/
pageno-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)jwst
regression tests with this branch installed ("git+https://github.com/<fork>/stdatamodels@<branch>"
)news fragment change types...
changes/<PR#>.feature.rst
: new featurechanges/<PR#>.bugfix.rst
: fixes an issuechanges/<PR#>.doc.rst
: documentation changechanges/<PR#>.removal.rst
: deprecation or removal of public APIchanges/<PR#>.misc.rst
: infrastructure or miscellaneous change