Skip to content

Commit

Permalink
add missing doctest-skip directives
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygreenfield committed Nov 16, 2023
1 parent 275707f commit f205bc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ expressed with no associated transform

To convert a pixel (x, y) = (1, 2) to sky coordinates, call the WCS object as a function:

.. doctest-skip::

>>> sky = wcsobj(1, 2)
>>> print(sky)
<SkyCoord (ICRS): (ra, dec) in deg
Expand All @@ -221,6 +223,8 @@ To convert a pixel (x, y) = (1, 2) to sky coordinates, call the WCS object as a
The :meth:`~gwcs.wcs.WCS.invert` method evaluates the :meth:`~gwcs.wcs.WCS.backward_transform`
if available, otherwise applies an iterative method to calculate the reverse coordinates.

.. doctest-skip::

>>> wcsobj.invert(sky)
(<Quantity 1. pix>, <Quantity 2. pix>)

Expand Down

0 comments on commit f205bc5

Please sign in to comment.