-
Notifications
You must be signed in to change notification settings - Fork 180
JP-4070: Fix incorrect pixel offsets fed into grism transforms for wfss_contam #9728
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
|
initial round of regtests to see if the changes to the WCS in extract_2d break anything: https://github.com/spacetelescope/RegressionTests/actions/runs/16811629854 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9728 +/- ##
==========================================
- Coverage 82.54% 82.54% -0.01%
==========================================
Files 366 366
Lines 37248 37246 -2
==========================================
- Hits 30748 30745 -3
- Misses 6500 6501 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
new regtests after fixing small issue with old-style WCS transforms: The failures of the wfss_contam regtests are expected. |
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.
The general approach for the WCS looks good to me, and the code updates look reasonable at a surface level. I'd like @tapastro to review for a more WFSS-knowledgeable perspective, though.
Are there docs on the NIRISS WCS anywhere that should be updated for the new intermediate frame?
|
I missed Nadia's comment that she would like to see an in-line comment about why there's a new frame added, so I will update that. I don't see anything in the readthedocs of Maybe I could just add one sentence to the docstring of |
I don't think so. There's some information in the assign_wcs docs with varying levels of detail for some modes, but it would be nice if we had a separate page to address all the WCS pipelines, since it's complicated and important. Perhaps we could add it as part of addressing JP-3959?
Better than nothing! |
|
Let me know how 8869fc5 looks. |
|
@tapastro I got some feedback from @gnoir0t on the JIRA ticket that he tested this and it seems to resolve issues with the order -1 and order +1 trace shapes for NIRISS. Along with my conversations with @NorPirzkal I think this has now been tested pretty well for both instruments and we can move ahead with the code review and try to get it merged. (of course this is probably the last message I'll send before vacation so take your time) |
…-4070-standalone
|
@tapastro @melanieclarke let me know how this looking from the code side. The INS teams are happy with it at this stage |
tapastro
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.
Code looks good, documentation looks good.
Agreed that our WCS objects should probably be better documented in a global sense, and describing the new frame/transform would go there, once the pages are built.
Resolves JP-4070
Closes #9694
This PR fixes an issue with the grism to detector WCS transform being used by the wfss_contam step, which was leading to multiple problems with the shapes of the spectral traces, including highly curved spectral traces in order -1 for NIRISS.
This comment explains the specific problem that is solved here.
Since I was working on understanding the WCS better, I also went ahead and updated the testing suite to mock the WCSs instead of getting them from file; there are therefore a few small changes to tests that aren't strictly related to the code changes.
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