Skip to content
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

Fix units issue with parameterless transform models #562

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

WilliamJamieson
Copy link
Collaborator

This fixes #558.

This fix is a bandaid fix until a fix upstream in astropy.modeling can be worked out. Note that this does not address the API issues expressed in #558, those are now being tracked by #561.

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.03%. Comparing base (f391f14) to head (602c16e).
Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
gwcs/wcs/_wcs.py 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #562      +/-   ##
==========================================
+ Coverage   85.96%   86.03%   +0.06%     
==========================================
  Files          27       27              
  Lines        4025     4052      +27     
==========================================
+ Hits         3460     3486      +26     
- Misses        565      566       +1     

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

@WilliamJamieson WilliamJamieson force-pushed the bugfix/parameterless_units branch from 7aae725 to e67f6cd Compare February 13, 2025 14:40
@WilliamJamieson WilliamJamieson marked this pull request as ready for review February 13, 2025 14:52
@WilliamJamieson WilliamJamieson requested a review from a team as a code owner February 13, 2025 14:52
This fixes the bug so that gwcs works as it currently states. Its also not perfect as the issue lies up in astropy.modeling not gwcs itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identity and Mapping transforms always return units (wrongly) in v0.24
1 participant