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

Add on spring cleaning #486

Closed
wants to merge 22 commits into from
Closed

Conversation

nden
Copy link
Collaborator

@nden nden commented Dec 1, 2023

This PR adds on #457. It includes all changes by @Cadair in that PR.
All, but the SlicedWCS, tests pass locally.

@Cadair @perrygreenfield

Cadair and others added 22 commits October 12, 2023 17:14
This creates a `BaseCoordinateFrame` class, definining the minimal API
for a coordinate frame with descriptive docstrings. This is done mainly
as an exercise to easily review and document the API. Also add
significant docstring to the module describing how and why coordinate
frames work.
The goal of this refactoring is to be able to remove `Frame.coordinates`
and `Frame.coordinate_to_quantity` and rely on the Astropy WCSAPI
machinery to do those conversions.
coordinates() and coordinate_to_quantity() are replaced by APE 14 methods
This highlights some API changes here.
@nden nden requested a review from a team as a code owner December 1, 2023 15:50
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Attention: Patch coverage is 95.96774% with 10 lines in your changes missing coverage. Please review.

Project coverage is 87.05%. Comparing base (8117b3c) to head (4685bcd).
Report is 52 commits behind head on master.

Files with missing lines Patch % Lines
gwcs/coordinate_frames.py 97.05% 5 Missing ⚠️
gwcs/wcs.py 91.37% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #486      +/-   ##
==========================================
- Coverage   87.25%   87.05%   -0.20%     
==========================================
  Files          22       22              
  Lines        3814     3717      -97     
==========================================
- Hits         3328     3236      -92     
+ Misses        486      481       -5     

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


.. code-block:: python

[SpectralCoord(axes_order=(1,)), CelestialCoord(axes_order=(2, 0))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
[SpectralCoord(axes_order=(1,)), CelestialCoord(axes_order=(2, 0))]
[SpectralFrame(axes_order=(1,)), CelestialFrame(axes_order=(2, 0))]

@Cadair
Copy link
Collaborator

Cadair commented Sep 25, 2024

I just discovered another bug that's fixed by this, so I guess it's time for me to resurrect it again

@Cadair
Copy link
Collaborator

Cadair commented Sep 25, 2024

I have merged this back into #457 so I can keep pushing there. This can be closed.

@Cadair Cadair closed this Sep 26, 2024
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.

2 participants