-
Notifications
You must be signed in to change notification settings - Fork 169
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-3567: SIP coefficient accuracy and consistency #8529
Conversation
Regression tests started here: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8529 +/- ##
==========================================
+ Coverage 58.02% 58.13% +0.10%
==========================================
Files 388 388
Lines 38977 38972 -5
==========================================
+ Hits 22617 22655 +38
+ Misses 16360 16317 -43 ☔ View full report in Codecov by Sentry. |
Regression tests look mostly as expected. There are some unrelated changes for MIRI LRS; all other changes are to the WCS keywords in the SCI headers for imaging and WFSS modes. |
@melanieclarke Is this ready for review? |
@hbushouse - Yep, I think it's good to go. Nadia's review would be helpful, if she can, since she worked on this ticket. |
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.
Everything looks good to me. Just curious, though, as to why the regtest results show that for most results the order of the fit (and hence the number of SIP coeff keywords in the headers) has increased, but for one MIRI imaging result it appears that the order of the fit has been reduced compared to before. Any thoughts?
@hbushouse - I saw that. I suspect it's because we increased the number of points, so it needed a smaller order to reach the required accuracy, but I haven't checked that assumption. I'll check it out. EDIT: |
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
I'm going to push up one more small change to set the default npoints to 12 instead of 32, per discussion in the JP ticket. |
Another regtest run (hopefully final) started at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1508 |
Latest regtest results, while corrupted by lots of unrelated differences in NIRSpec slit data due to updates to wavecorr, show the expected increase in SIP coeff keywords for all relevant modes, such as NRC, NIS, and MIRI imaging, as well as NRC and NIS WFSS. None of them shows a decrease in the fit order anymore. So this looks good. |
Resolves JP-3567
Closes #8341
These changes align the default parameters for WCP SIP approximation in the three places they are used: the assign_wcs step, the tweakreg step, and the underlying
update_fits_wcsinfo
function defaults. New step parameters are added for tweakreg, matching the ones in assign_wcs, so that the parameters used in both steps can be modified together.The new defaults for assign_wcs should result in better accuracy in the output FITS WCS.
Checklist for PR authors (skip items if you don't have permissions or they are not applicable)
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR