Skip to content

Commit f31df50

Browse files
committed
DOC: one doctest-remote-data-all to rule them all
1 parent c3fdc78 commit f31df50

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

docs/esa/euclid/euclid.rst

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
ESA EUCLID Archive (`astroquery.esa.euclid`)
55
********************************************
66

7+
78
Euclid is an ESA mission to map the geometry of the dark Universe. The mission investigates the distance-redshift
89
relationship and the evolution of cosmic structures. The space telescope creates a great map of the large-scale
910
structure of the Universe across space and time by observing billions of galaxies out to 10 billion light-years, across
@@ -80,7 +81,9 @@ Examples
8081

8182
It is highly recommended checking the status of Euclid TAP before executing this module. To do this:
8283

83-
.. doctest-remote-data::
84+
.. almost all code examples require remote-data access, thus only using this
85+
one at the first example
86+
.. doctest-remote-data-all::
8487

8588
>>> from astroquery.esa.euclid import Euclid
8689
>>> Euclid.get_status_messages()
@@ -122,14 +125,10 @@ The description of these data products can be found on the Data Product Definiti
122125

123126
By default, the object *Euclid*
124127

125-
.. doctest-remote-data::
126-
127128
>>> from astroquery.esa.euclid import Euclid
128129

129130
makes use of the *PDR* environment. In order to make use of a different one, it is necessary to instantiate the class EuclidClass
130131

131-
.. doctest-remote-data::
132-
133132
>>> from astroquery.esa.euclid import EuclidClass
134133
>>> euclid = EuclidClass(environment='IDR')
135134

@@ -146,8 +145,6 @@ Table and column metadata are specified by IVOA TAP_ recommendation (to access t
146145

147146
To load only table names metadata (TAP+ capability):
148147

149-
.. doctest-remote-data::
150-
151148
>>> from astroquery.esa.euclid import Euclid
152149
>>> tables = Euclid.load_tables(only_names=True, include_shared_tables=True)
153150
INFO: Retrieving tables... [astroquery.utils.tap.core]
@@ -177,8 +174,6 @@ To load only table names metadata (TAP+ capability):
177174

178175
To load all table metadata (TAP compatible):
179176

180-
.. doctest-remote-data::
181-
182177
>>> from astroquery.esa.euclid import Euclid
183178
>>> tables = Euclid.load_tables()
184179
INFO: Retrieving tables... [astroquery.utils.tap.core]
@@ -193,8 +188,6 @@ To load all table metadata (TAP compatible):
193188

194189
To load only a table (TAP+ capability) and inspect its columns:
195190

196-
.. doctest-remote-data::
197-
198191
>>> from astroquery.esa.euclid import Euclid
199192
>>> raw_detector_table = Euclid.load_table('sedm.raw_detector')
200193
>>> print(raw_detector_table) # doctest: +SKIP
@@ -282,8 +275,6 @@ In the following example, for the Clusters of Galaxies category, and the group G
282275

283276
This query performs a cone search centered at the specified ra/dec coordinates with the provided radius argument.
284277

285-
.. doctest-remote-data::
286-
287278
>>> #example cone search for source NGC6505
288279
>>> from astroquery.esa.euclid import Euclid
289280
>>> from astropy.coordinates import SkyCoord
@@ -310,8 +301,6 @@ This query performs a cone search centered at the specified ra/dec coordinates w
310301

311302
Queries return a limited number of rows controlled by ``Euclid.ROW_LIMIT``. To change the default behaviour set this appropriately.
312303

313-
.. doctest-remote-data::
314-
315304
>>> Euclid.ROW_LIMIT = 2
316305
>>> job = Euclid.cone_search(coordinate=coord, radius=radius, table_name="sedm.mosaic_product", ra_column_name="ra", dec_column_name="dec", columns="*", async_job=True)
317306
INFO: Query finished. [astroquery.utils.tap.core]
@@ -336,8 +325,6 @@ The following example searches for all the sources contained in an squared regio
336325

337326
The method returns the job results as astropy.table
338327

339-
.. doctest-remote-data::
340-
341328
>>> # Search for objects around a given position with the default catalog catalogue.mer_catalogue
342329
>>> from astroquery.esa.euclid import Euclid
343330
>>> from astropy.coordinates import SkyCoord
@@ -369,8 +356,6 @@ Synchronous queries like this one return a limited number of rows -> 2000
369356

370357
The previous query can be executed as an asynchronous version:
371358

372-
.. doctest-remote-data::
373-
374359
>>> from astroquery.esa.euclid import Euclid
375360
>>> from astropy.coordinates import SkyCoord
376361
>>> import astropy.units as u
@@ -832,13 +817,11 @@ In the Euclid archive user tables can be shared among user groups.
832817

833818
To obtain a list of the tables shared to a user type the following:
834819

835-
.. doctest-remote-data::
836-
837820
>>> from astroquery.esa.euclid import Euclid
838821
>>> tables = Euclid.load_tables(only_names=True, include_shared_tables=True)
839822
INFO: Retrieving tables... [astroquery.utils.tap.core]
840823
INFO: Parsing tables... [astroquery.utils.tap.core]
841-
INFO: Done. [astroquery.utils.tap.core]
824+
INFO: Done. [astroquery.utils.tap.core]
842825
>>> for table in tables:
843826
... print(table.get_qualified_name())
844827
catalogue.mer_catalogue

0 commit comments

Comments
 (0)