Skip to content

Commit 32b0af5

Browse files
authored
Merge pull request #2118 from bsipocz/nasa_ea_add_back_remote_data
Revert temporary doctest remote-data removal, and fix code blocks
2 parents 16e1df2 + 6ccfadd commit 32b0af5

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

docs/irsa/irsa.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ All region queries require a ``catalog`` keyword argument, which is the name of
2323
the catalog in the IRSA database, on which the query must be performed. To take
2424
a look at all the available catalogs:
2525

26-
.. code-block:: python
2726
.. doctest-remote-data::
2827

2928
>>> from astroquery.irsa import Irsa
@@ -41,7 +40,6 @@ a look at all the available catalogs:
4140
This returns a dictionary of catalog names with their description. If you would
4241
rather just print out this information:
4342

44-
.. code-block:: python
4543
.. doctest-remote-data::
4644

4745
>>> from astroquery.irsa import Irsa
@@ -64,7 +62,6 @@ missing, it defaults to a value of 10 arcsec. The radius may be specified in
6462
any appropriate unit using a `~astropy.units.Quantity` object. It may also be
6563
entered as a string that is parsable by `~astropy.coordinates.Angle`.
6664

67-
.. code-block:: python
6865
.. doctest-remote-data::
6966

7067
>>> from astroquery.irsa import Irsa
@@ -89,7 +86,6 @@ name. The coordinates can be specified using the appropriate
8986
`astropy.coordinates` object. ICRS coordinates may also be entered directly as
9087
a string, as specified by `astropy.coordinates`:
9188

92-
.. code-block:: python
9389
.. doctest-remote-data::
9490

9591
>>> from astroquery.irsa import Irsa
@@ -120,7 +116,6 @@ region is required. The width may be specified in the same way as the radius
120116
for cone search queries, above - so it may be set using the appropriate
121117
`~astropy.units.Quantity` object or a string parsable by `~astropy.coordinates.Angle`.
122118

123-
.. code-block:: python
124119
.. doctest-remote-data::
125120

126121
>>> from astroquery.irsa import Irsa
@@ -152,7 +147,6 @@ the coordinates is also available - Coordinates may also be entered as a list of
152147
tuples, each tuple containing the ra and dec values in degrees. Each of these
153148
options is illustrated below:
154149

155-
.. code-block:: python
156150
.. doctest-remote-data::
157151

158152
>>> from astroquery.irsa import Irsa
@@ -177,7 +171,6 @@ options is illustrated below:
177171
Another way to specify the polygon is directly as a list of tuples - each tuple
178172
is an ra, dec pair expressed in degrees:
179173

180-
.. code-block:: python
181174
.. doctest-remote-data::
182175

183176
>>> from astroquery.irsa import Irsa
@@ -209,7 +202,6 @@ An example where the AllWISE Source Catalog needs to be queried around the
209202
star HIP 12 with just the ra, dec and w1mpro columns would be:
210203

211204

212-
.. code-block:: python
213205
.. doctest-remote-data::
214206

215207
>>> from astroquery.irsa import Irsa
@@ -235,7 +227,6 @@ not only the display of columns, but also the precision that is output when the
235227
is written in ``ascii.ipac`` or ``ascii.csv`` formats. The ``.format`` attribute of
236228
individual columns may be set to increase the precision.
237229

238-
.. code-block:: python
239230
.. doctest-remote-data::
240231

241232
>>> from astroquery.irsa import Irsa
@@ -256,7 +247,6 @@ By default the maximum number of rows that is fetched is set to 500. However,
256247
this option may be changed by changing the astroquery configuration file. To
257248
change the setting only for the ongoing python session, you could also do:
258249

259-
.. code-block:: python
260250

261251
>>> from astroquery.irsa import Irsa
262252
>>> Irsa.ROW_LIMIT = 1000 # 1000 is the new value for row limit here.

docs/irsa_dust/irsa_dust.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ specified. If missing the radius defaults to 5 degrees. Note that radius may be
2020
specified in any appropriate unit, however it must fall in the range of 2 to
2121
37.5 degrees.
2222

23-
.. code-block:: python
2423
.. doctest-remote-data::
2524

2625
>>> from astroquery.irsa_dust import IrsaDust
@@ -43,7 +42,6 @@ to the :meth:`~astroquery.irsa_dust.IrsaDustClass.get_images` method. It can tak
4342
``ebv``, ``100um`` and ``temperature``, corresponding to each of the 3 kinds of
4443
images:
4544

46-
.. code-block:: python
4745
.. doctest-remote-data::
4846

4947
>>> from astroquery.irsa_dust import IrsaDust
@@ -56,7 +54,6 @@ images:
5654

5755
The image types that are available can also be listed out any time:
5856

59-
.. code-block:: python
6057
.. doctest-remote-data::
6158

6259
>>> from astroquery.irsa_dust import IrsaDust
@@ -66,7 +63,6 @@ The image types that are available can also be listed out any time:
6663
The target may also be specified via coordinates passed as strings. Examples of acceptable coordinate
6764
strings can be found on this `IRSA DUST coordinates description page`_.
6865

69-
.. code-block:: python
7066
.. doctest-remote-data::
7167

7268
>>> from astroquery.irsa_dust import IrsaDust
@@ -86,7 +82,6 @@ than the actual images, via the :meth:`~astroquery.irsa_dust.IrsaDustClass.get_i
8682
supports the ``image_type`` argument, in the same way as described for
8783
:meth:`~astroquery.irsa_dust.IrsaDustClass.get_images`.
8884

89-
.. code-block:: python
9085
.. doctest-remote-data::
9186

9287
>>> from astroquery.irsa_dust import IrsaDust
@@ -107,7 +102,6 @@ This fetches the extinction table as a `~astropy.table.Table`. The input paramet
107102
the queries discussed above, namely the target string and optionally a radius
108103
value:
109104

110-
.. code-block:: python
111105
.. doctest-remote-data::
112106

113107
>>> from astroquery.irsa_dust import IrsaDust
@@ -155,7 +149,6 @@ additional section ``location`` may be fetched using the ``section`` keyword
155149
argument. If on the other hand, ``section`` is missing then the complete table
156150
with all the four sections will be returned.
157151

158-
.. code-block:: python
159152
.. doctest-remote-data::
160153

161154
>>> from astroquery.irsa_dust import IrsaDust

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(

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ install_requires=
138138
pyvo>=1.1
139139
six
140140
tests_require =
141-
pytest-doctestplus>=0.9
141+
pytest-doctestplus>=0.10.1
142142
pytest-astropy
143143

144144
[options.extras_require]
@@ -149,7 +149,7 @@ test=
149149
flask
150150
pytest-dependency
151151
docs=
152-
sphinx-astropy
152+
sphinx-astropy>=1.5
153153
all=
154154
mocpy>=0.5.2
155155
astropy-healpix

0 commit comments

Comments
 (0)