Skip to content

Commit

Permalink
Improvements to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 28, 2018
1 parent 9511106 commit d36b96c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions astropy/wcs/wcsapi/fitswcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@

class FITSWCSAPIMixin(BaseLowLevelWCS, HighLevelWCSMixin):
"""
A wrapper around the :class:`astropy.wcs.WCS` class that provides the
low-level WCS API from APE 14.
A mix-in class that is intended to be inherited by the
:class:`~astropy.wcs.WCS` class and provides the low- and high-level WCS API
"""

@property
Expand Down
10 changes: 8 additions & 2 deletions astropy/wcs/wcsapi/high_level_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def default_order(components):


class BaseHighLevelWCS(metaclass=abc.ABCMeta):
"""
Abstract base class for the high-level WCS interface.
This is described in `APE 14: A shared Python interface for World Coordinate
Systems <https://doi.org/10.5281/zenodo.1188875>`_.
"""

@property
@abc.abstractmethod
Expand Down Expand Up @@ -100,8 +106,8 @@ def world_to_array_index(self, *world_objects):

class HighLevelWCSMixin(BaseHighLevelWCS):
"""
This is a mix-in class that automatically provides the high-level WCS API
for the low-level WCS object given by the `~HighLevelWCSMixin.low_level_wcs`
Mix-in class that automatically provides the high-level WCS API for the
low-level WCS object given by the `~HighLevelWCSMixin.low_level_wcs`
property.
"""

Expand Down
4 changes: 4 additions & 0 deletions astropy/wcs/wcsapi/high_level_wcs_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@


class HighLevelWCSWrapper(HighLevelWCSMixin):
"""
Wrapper class that can take any `BaseLowLevelWCS` object and expose the
high-level WCS API.
"""

def __init__(self, low_level_wcs):
self._low_level_wcs = low_level_wcs
Expand Down
2 changes: 2 additions & 0 deletions docs/wcs/wcsapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ Reference/API
=============

.. automodapi:: astropy.wcs.wcsapi

.. automodapi:: astropy.wcs.wcsapi.fitswcs

0 comments on commit d36b96c

Please sign in to comment.