-
Notifications
You must be signed in to change notification settings - Fork 181
JP-4052: Fix extract_1d and combine_1d failures from all-NaN slit #9625
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9625 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 367 367
Lines 37217 37286 +69
=====================================
- Misses 37217 37286 +69 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
It's still not clear to me why there are slits being generated from |
melanieclarke
left a comment
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.
Fix and test coverage look good to me.
If I'm interpreting Pey Lian's request correctly - I don't see an easy way to add a forward-looking xfail test here for the potential other problems in spec2 that are triggering the all-NaN condition in the first place. Whatever errors there may be would be in a different part of the code entirely.
Can you please rerun the regtests? The last posted ones got mixed up with the CRDS change for MIRI.
|
restarting regtests https://github.com/spacetelescope/RegressionTests/actions/runs/16205746138 There seem to be some failures in x1d from spec2 that I didn't expect. Will look into what is causing those. |
|
From the regtest results, it looks like this is unexpectedly impacting NIRSpec MOS data, which did not previously crash in extraction. There are known situations where there are all-NaN slits for MOS, for sources that partially fall on a detector in a region where there are valid wavelengths defined but no valid flat data. Up to now, we have produced empty spectra for these slits -- this change would instead skip them. I'm a little leery of introducing this change to existing products to the next RC. Maybe we should defer it to the next build after all? Or find a narrower fix that addresses the specific crash for WFSS? |
|
I believe there's an easy way to fix this. I don't think the skip clause in I added the My one concern with getting that done today is that I won't have time to run the full asn through the pipeline again, since it takes ~24 hours on my computer. I created a smaller asn subset that fails on main which I'd assume to be representative, and would probably feel safe calling it good enough if that processed successfully. |
Okay, that makes sense. I did wonder how we had missed a crash in extract_1d for that condition.
I also don't think there's much point in processing an all-NaN slit, but I think INS should weigh in. Can you file a follow up ticket, for next build?
That sounds safe enough to me too -- the combine1d fix alone should do no harm at least, since it is currently crashing in that case. We can test the full data set next week, and fix any additional problems in later releases. |
|
Ticket filed here, feel free to edit as you see fit https://jira.stsci.edu/browse/JP-4058 |
|
all regtests now passing: https://github.com/spacetelescope/RegressionTests/actions/runs/16205746138 |
melanieclarke
left a comment
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.
LGTM -- thanks, Ned.
|
@meeseeksdev backport to release/1.19.x |
…1d failures from all-NaN slit
…nd combine_1d failures from all-NaN slit) (#9639) Co-authored-by: Ned Molter <[email protected]>
Resolves JP-4052
Closes #9613
This PR addresses errors noticed in ops for a large WFSS dataset. In short,
extract_1dandcombine_1dlacked graceful handling of all-NaN slit data and spectra, respectively. This PR adds those catches and allows the failing program to process successfully.Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)docs/pageokify_regteststo update the truth files