Prepare for moving construct_wcs_corrector out to pipelines#529
Prepare for moving construct_wcs_corrector out to pipelines#529mcara wants to merge 3 commits intospacetelescope:mainfrom
construct_wcs_corrector out to pipelines#529Conversation
|
Regression test for JWST: https://github.com/spacetelescope/RegressionTests/actions/runs/22769717421 |
This will also need a passing romancal regtest run. Would you help me understand how this relates to #528 or spacetelescope/tweakwcs#243 What is the plan here? Is this PR ready independent of spacetelescope/tweakwcs#243? |
Yes, it is independent, but the two follow-up PRs will depend on |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #529 +/- ##
==========================================
- Coverage 91.93% 89.61% -2.33%
==========================================
Files 62 62
Lines 8793 8790 -3
==========================================
- Hits 8084 7877 -207
- Misses 709 913 +204 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
My previous tests were set-up incorrectly. Starting new tests: |
|
Would it be easier (and equivalent) to just replace: stcal/src/stcal/tweakreg/tweakreg.py Lines 352 to 353 in 0e218f9 with: original_skycoord = _wcs_to_skycoord(corrector.original_wcs)
separation = original_skycoord.separation(aligned_skycoord) and drop the handling of |
57d26ba to
4cff4ce
Compare
This is an excellent observation! I see no reason not to do this. Initially I wanted to eliminate WCS copying for performance reasons but I kept |
be06f1a to
7c51aee
Compare
for more information, see https://pre-commit.ci
This PR is the first step of moving
construct_wcs_correctorto pipelines. This is the approach that I favor for fixing #528 in conjunction with a new release (0.9.0) oftweakwcsafter spacetelescope/tweakwcs#243 is merged.Associated Prs:
spacetelescope/romancal#2219
spacetelescope/jwst#10306
Tasks
docs/pageno-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)changes/<PR#>.breaking.rstnews fragment"git+https://github.com/<fork>/stcal@<branch>")jwstregression testromancalregression test