Skip to content

Clean up the internal calls in GWCS#696

Open
WilliamJamieson wants to merge 7 commits into
spacetelescope:mainfrom
WilliamJamieson:Refactor_internal_API
Open

Clean up the internal calls in GWCS#696
WilliamJamieson wants to merge 7 commits into
spacetelescope:mainfrom
WilliamJamieson:Refactor_internal_API

Conversation

@WilliamJamieson

Copy link
Copy Markdown
Collaborator

This PR makes the code call paths for the GWCS Native API use common code paths instead of effectively replicating code. This way the external API can be more properly expressed and maintained in a consistent fashion. Fix #561

As a byproduct of this work we also fix issues with quantities in the "APE 14 low-level API". Documentation of this will come in a follow on PR. Fix #689

Tasks

  • Update or add relevant gwcs tests.
  • Update relevant docstrings and / or docs/ page.
  • Does this PR need a changelog entry? (If not, label with no-changelog-entry-needed.)
    • Write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see below for change types).
News fragment change types:
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.breaking.rst: any change or deprecation of the public API
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

@codecov

codecov Bot commented Feb 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.67100% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.29%. Comparing base (d1c18bb) to head (443dddd).

Files with missing lines Patch % Lines
gwcs/wcs/_step.py 68.75% 5 Missing ⚠️
gwcs/wcs/_wcs.py 95.00% 4 Missing ⚠️
gwcs/wcs/_pipeline.py 98.91% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #696      +/-   ##
==========================================
+ Coverage   86.13%   86.29%   +0.15%     
==========================================
  Files          41       41              
  Lines        4349     4428      +79     
==========================================
+ Hits         3746     3821      +75     
- Misses        603      607       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch 6 times, most recently from 5bf1217 to a930d24 Compare February 17, 2026 18:07
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch 2 times, most recently from 5e1d55a to 829037f Compare February 19, 2026 19:13
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch 2 times, most recently from d609d0d to 7d478b8 Compare March 18, 2026 13:29
@WilliamJamieson
WilliamJamieson marked this pull request as ready for review March 18, 2026 18:41
@WilliamJamieson
WilliamJamieson requested a review from a team as a code owner March 18, 2026 18:41
@WilliamJamieson
WilliamJamieson requested review from Cadair and mcara March 18, 2026 18:41
@WilliamJamieson

Copy link
Copy Markdown
Collaborator Author

@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch from 66c8dc7 to 44b2f19 Compare June 17, 2026 20:37
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch 2 times, most recently from 8cbe570 to 3af7c08 Compare July 8, 2026 16:30
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch from 3af7c08 to b2afe08 Compare July 15, 2026 22:27
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch 3 times, most recently from a42e7d7 to 2bff14e Compare July 16, 2026 20:01
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch 5 times, most recently from 5df14a8 to aed3232 Compare July 17, 2026 02:15

@mcara mcara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, this is an epic refactor that consolidates the Native API call paths, improves consistency, and resolves the Quantity handling issues in the APE‑14 low‑level API. This looks good to me. However, regression tests should be re-run before formal approval.

@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch from aed3232 to ee99c91 Compare July 17, 2026 15:00
Fixes for
1. Inconsistencies in the API.
2. Backwards compatibility
3. Broken edge cases
4. Deprecation warnings for legacy code
@WilliamJamieson
WilliamJamieson force-pushed the Refactor_internal_API branch from ee99c91 to 443dddd Compare July 17, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quantities and the "low-level" APE 14 API Make the WCS evaluation API uniform

2 participants