-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
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.
Codecov ReportAttention: Patch coverage is
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. |
|
||
.. code-block:: python | ||
|
||
[SpectralCoord(axes_order=(1,)), CelestialCoord(axes_order=(2, 0))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[SpectralCoord(axes_order=(1,)), CelestialCoord(axes_order=(2, 0))] | |
[SpectralFrame(axes_order=(1,)), CelestialFrame(axes_order=(2, 0))] |
I just discovered another bug that's fixed by this, so I guess it's time for me to resurrect it again |
I have merged this back into #457 so I can keep pushing there. This can be closed. |
This PR adds on #457. It includes all changes by @Cadair in that PR.
All, but the SlicedWCS, tests pass locally.
@Cadair @perrygreenfield