-
Notifications
You must be signed in to change notification settings - Fork 179
Fix for slice width calculation #9606
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9606 +/- ##
==========================================
- Coverage 80.46% 79.48% -0.99%
==========================================
Files 368 368
Lines 37281 37225 -56
==========================================
- Hits 29997 29587 -410
- Misses 7284 7638 +354 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
LG2M, and confirmed that this fixes the issue locally for me.
|
Is this a rare issue with NIRSpec IFU data, or should it have been seen in our tests? We should consider assessing test coverage in 12.1. |
I think it was grating dependent, and we did not happen to test the WCS change on this grating, either in our regression tests or in the local tests Chris and I independently ran. I'm not sure it would be helpful to have regression tests for all possible grating combinations, but I should have considered testing the change on a wider range of gratings myself, during development. |
|
@meeseeksdev backport to release/1.19.x |
…lation) (#9629) Co-authored-by: Melanie Clarke <[email protected]>
Resolves JP-4050
Fix for a crash encountered in cube_build with new-style slice-map-based WCS for NIRSpec IFU.
The issue is that cube_build is looking for a single number, the distance between two slices in slicer coordinates, but it is calculating the value from all valid x and y within the range of two slice bounding boxes + a margin. For G235H, the bounding boxes for the slices checked overlap a little, so there is not a single value returned, but several, corresponding to the unique slice values for multiple slices. Since the code expects only a single value, it crashes.
The fix is to check the slicer value at the center of the slice instead of all pixels in range, which should return a single valid value every time.
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