JP-3944: Add chromcorr handling to assign_wcs for nirspec#10556
JP-3944: Add chromcorr handling to assign_wcs for nirspec#10556emolter wants to merge 25 commits into
Conversation
Co-authored-by: Christian Hayes <chayes@stsci.edu>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10556 +/- ##
=======================================
Coverage 86.86% 86.86%
=======================================
Files 375 375
Lines 40346 40356 +10
=======================================
+ Hits 35047 35056 +9
- Misses 5299 5300 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
regtests pointed to stdatamodels PR branch: https://github.com/spacetelescope/RegressionTests/actions/runs/26053406592 |
…rtially duplicated code with bug in it
melanieclarke
left a comment
There was a problem hiding this comment.
This looks reasonable to me. I think the new "oteip_chromcorr" frame needs to be noted in a few more places. I marked a couple, but it might be a good idea to look around for more places where the specific frames for NIRSpec are mentioned.
Do you know if any of the unit tests for the NIRSpec WCS will need updating? I'm not sure how to test that before the files are available.
It would also be helpful to get a review from one of the WCS experts if possible.
|
@melanieclarke who are considered the "wcs experts" these days? |
I think @mcara and @WilliamJamieson. |
|
@melanieclarke recent commits have added mentions of the |
|
https://github.com/spacetelescope/RegressionTests/actions/runs/27158036984 regression tests pointing to crds-test. All the regression tests on real data look as expected, with most failures coming from a new R_CHRCOR keyword and a few small numerical diffs in the NIRSpec IFU tests. There are a few failures in unit tests that need investigating, which all show no attribute "inverse". I assume these are due to some kind of incomplete mocked wcs. edit: thanks to @hayescr for helping me figure this out, this was due to the CRDS selection rules requiring a date > 2022-01-01, i.e., post-launch. Some of our mock data had dates prior to that. I just updated the dates in 183184f |
There was a problem hiding this comment.
tolerances in the IFU tests in file needed to be relaxed a lot to get tests to pass. It makes sense that the WCS solution has changed due to the new files, plus changing the date from pre-launch to 2026, so I don't think this is a particular concern. However it may be useful in the future to consider how to restructure these tests to avoid testing against these now out-of-date truth files.
|
regression tests: https://github.com/spacetelescope/RegressionTests/actions/runs/27432609830 There are several hundred failures because all products that go through assign_wcs now get the keyword Additionally, for some NIRSpec IFU tests, there are small differences in the S_REGION keyword. |
There was a problem hiding this comment.
CRDS bump required to pick up spacetelescope/crds@3a6bea3
Apparently this is the first time we've had a new reftype in an ops context that's not matched to a release .
|
I think the oldestdeps failures now are unrelated: They don't have to do with chromcorr at all. |
We should probably bump asdf anyway, or else NIRSpec users with older installed asdf versions will see this warning. |
|
Looks like there's a slow unit test for pixel replace that's failing in the regtests: Spot checking the rest looks like expected differences. |
|
to clarify you want me to put that ASDF bump into this PR? I'll have a look at the slow test, thanks for catching it |
|
@melanieclarke pix replace test fixed by 31a52c8 |
Resolves JP-3944
See companion stdatamodels PR here: spacetelescope/stdatamodels#743
This PR adds a chromaticity correction to the NIRSpec IFU assign_wcs pipeline. The correction is delivered via a new "chromcorr" reference file and associated
ChromCorrModel.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)changes/<PR#>.breaking.rstnews fragmentdocs/pageokify_regteststo update the truth files