-
Notifications
You must be signed in to change notification settings - Fork 171
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-3343: Add bounding_box to imaging WCS objects without one #7809
Conversation
Checking regtests here: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/855/ |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #7809 +/- ##
==========================================
- Coverage 76.52% 76.51% -0.01%
==========================================
Files 456 456
Lines 36964 36965 +1
==========================================
Hits 28285 28285
- Misses 8679 8680 +1
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Since this is in response to a Help Desk query, it would be good to retroactively create a JP ticket and link it here. Also helps with the bean counting of how many tickets/bugs we fix! ;-) |
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.
Seems simple and straightforward enough to me. But really need the blessing of the WCS czar (@nden ).
Regtest results show mainly the differences due to a recent update to the refpix step for NRS IRS2 data. One test, for an NRS2 image, does show that the FITS SIP keywords are now included in the cal product header and fully populated. So that's a good sign. |
7c53032
to
08fd9b8
Compare
I suggest we add the code in |
New regtest run here: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/867/ Strange failure has disappeared from regtests. I moved the bbox generation to right before the S_REGION calculations, because most of them check for bbox presence and mock one if it didn't exist. This isn't quite where @nden wanted it - I can move it to |
5471ad9
to
9e24241
Compare
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.
Initially I was suggesting to assign a bounding_box to all imaging modes in assign_wcs_step. Looking at the current changes I realized this will not cover resampled products. Now I think your first solution is best. Sorry for the flip flop.
34f18db
to
4f9a351
Compare
Is everyone agreed that this is all OK now? @nden |
Resolves JP-3343
Closes #7820
This PR addresses a help desk inquiry regarding missing FITS SIP approximations for a NIRSpec TAcq image. These values were not filled during assign_wcs because the bounding_box was never defined. This PR is an experiment to see if saving a bounding box to imaging WCS objects of size {data.shape}, when one does not already exist, will break things.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR