Skip to content

Commit

Permalink
TST: fixing failing doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Aug 7, 2023
1 parent bdb09cd commit 833228b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/casda/casda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For example:
>>> from astropy import units as u
>>> centre = SkyCoord.from_name('NGC 7232')
>>> result_table = Casda.query_region(centre, radius=30*u.arcmin)
>>> print(result_table['obs_publisher_did','s_ra', 's_dec', 'obs_release_date'][:5])
>>> print(result_table['obs_publisher_did','s_ra', 's_dec', 'obs_release_date'][:5]) # doctest: +IGNORE_OUTPUT
obs_publisher_did s_ra s_dec obs_release_date
deg deg
----------------- --------------- ---------------- ------------------------
Expand All @@ -45,7 +45,7 @@ For example to filter out the 30 non-public results from the above data set:
.. doctest-remote-data::

>>> public_results = Casda.filter_out_unreleased(result_table)
>>> print(public_results['obs_publisher_did','s_ra', 's_dec', 'obs_release_date'][:5])
>>> print(public_results['obs_publisher_did','s_ra', 's_dec', 'obs_release_date'][:5]) # doctest: +IGNORE_OUTPUT
obs_publisher_did s_ra s_dec obs_release_date
deg deg
----------------- --------------- ---------------- ------------------------
Expand Down
3 changes: 2 additions & 1 deletion docs/ipac/nexsci/nasa_exoplanet_archive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ A list of accessible tables can be found in the ``TAP_TABLES`` attribute:

>>> from astroquery.ipac.nexsci.nasa_exoplanet_archive import NasaExoplanetArchive
>>> NasaExoplanetArchive.TAP_TABLES
['superwasptimeseries',
['spectra',
'superwasptimeseries',
'kelttimeseries',
'DI_STARS_EXEP',
'transitspec',
Expand Down
4 changes: 2 additions & 2 deletions docs/jplsbdb/jplsbdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ item:
.. code-block:: python
>>> sbdb['orbit']['moid_jup'] # doctest: +REMOTE_DATA
<Quantity 0.431 AU>
<Quantity 0.43 AU>
Note that many of the items in the output dictionary are associated
with `~astropy.units` which can be readily used for
Expand All @@ -167,7 +167,7 @@ orbit intersection distance of the target with respect to Jupiter
.. code-block:: python
>>> print(sbdb['orbit']['moid_jup'].to('km')) # doctest: +REMOTE_DATA
64476682.271699995 km
64327084.40099999 km
The vast majority of parameter names are identical to those used in
the `SBDB API documentation
Expand Down

0 comments on commit 833228b

Please sign in to comment.