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
Copy link
Copy Markdown

codecov Bot commented Feb 9, 2026

Codecov Report

❌ Patch coverage is 97.45763% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.07%. Comparing base (ad39b55) to head (66c8dc7).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
gwcs/wcs/_wcs.py 96.22% 2 Missing ⚠️
gwcs/utils.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #696      +/-   ##
==========================================
+ Coverage   86.04%   86.07%   +0.02%     
==========================================
  Files          41       41              
  Lines        4343     4345       +2     
==========================================
+ Hits         3737     3740       +3     
+ Misses        606      605       -1     

☔ View full report in Codecov by Sentry.
📢 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
Need to handle Identity directly rather than trying to infer it.
@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

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

1 participant