Skip to content

Commit 7410f57

Browse files
committed
Revert temporary doctest remote-data removal, and fix code blocks
1 parent 16e1df2 commit 7410f57

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/nasa_exoplanet_archive/nasa_exoplanet_archive.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery.nasa_exoplanet_archive:
42

53
************************************************************
@@ -26,7 +24,7 @@ Query methods
2624
The `~astroquery.nasa_exoplanet_archive.NasaExoplanetArchiveClass.query_object` method can be used to query for a specific planet or planet host.
2725
For example, the following query searches the ``ps`` table of confirmed exoplanets for information about the planet K2-18 b.
2826

29-
.. code-block:: python
27+
.. doctest-remote-data::
3028

3129
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
3230
>>> NasaExoplanetArchive.query_object("K2-18 b")
@@ -50,7 +48,7 @@ For example, the following query searches the ``ps`` table of confirmed exoplane
5048

5149
Similarly, cone searches can be executed using the `~astroquery.nasa_exoplanet_archive.NasaExoplanetArchiveClass.query_region` method:
5250

53-
.. code-block:: python
51+
.. doctest-remote-data::
5452

5553
>>> import astropy.units as u
5654
>>> from astropy.coordinates import SkyCoord
@@ -70,7 +68,7 @@ Similarly, cone searches can be executed using the `~astroquery.nasa_exoplanet_a
7068
The most general queries can be performed using the `~astroquery.nasa_exoplanet_archive.NasaExoplanetArchiveClass.query_criteria` method.
7169
For example, a full table can be queried as follows:
7270

73-
.. code-block:: python
71+
.. doctest-remote-data::
7472

7573
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
7674
>>> NasaExoplanetArchive.query_criteria(table="cumulative", select="*")
@@ -97,7 +95,7 @@ In this section, we demonstrate
9795

9896
1. The number of confirmed planets discovered by TESS:
9997

100-
.. code-block:: python
98+
.. doctest-remote-data::
10199

102100
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
103101
>>> NasaExoplanetArchive.query_criteria(table="pscomppars", select="count(*)",
@@ -111,7 +109,7 @@ In this section, we demonstrate
111109

112110
2. The list of confirmed planets discovered by TESS and their host star coordinates:
113111

114-
.. code-block:: python
112+
.. doctest-remote-data::
115113

116114
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
117115
>>> NasaExoplanetArchive.query_criteria(table="pscomppars", select="pl_name,ra,dec",
@@ -132,7 +130,7 @@ In this section, we demonstrate
132130

133131
3. The list of confirmed planets discovered using microlensing that have data available in the archive:
134132

135-
.. code-block:: python
133+
.. doctest-remote-data::
136134

137135
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
138136
>>> NasaExoplanetArchive.query_criteria(
@@ -155,7 +153,7 @@ In this section, we demonstrate
155153

156154
4. The list of confirmed planets where the host star name starts with "Kepler" using a *wildcard search*:
157155

158-
.. code-block:: python
156+
.. doctest-remote-data::
159157

160158
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
161159
>>> NasaExoplanetArchive.query_criteria(
@@ -181,7 +179,7 @@ In this section, we demonstrate
181179

182180
5. The Kepler Objects of Interest that were vetted more recently than January 24, 2015 using a *date search*:
183181

184-
.. code-block:: python
182+
.. doctest-remote-data::
185183

186184
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
187185
>>> NasaExoplanetArchive.query_criteria(

0 commit comments

Comments
 (0)