Skip to content

Commit 37c02b6

Browse files
tinuademargaretbsipocz
authored andcommitted
changed to IGNORE_OUTPUT
1 parent 4fe761b commit 37c02b6

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

docs/cadc/cadc.rst

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,9 @@ the URLs for downloading the corresponding data.
8989
caom:CFHT/2366188 2366188 ... md5:f0ec6252250a86963a102351c23d0ca7
9090
caom:CFHT/2480747 2480747 ... md5:a7cccd9710cbca222dc8f8b1eedff3b5
9191
caom:CFHT/2480747 2480747 ... md5:c24ace389b760c290a5bf31842fb4ea9
92-
93-
.. doctest-skip::
9492
>>> urls = cadc.get_data_urls(result)
9593
>>> for url in urls:
96-
... print(url)
94+
... print(url) #doctest: +IGNORE_OUTPUT
9795
...
9896
https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/data/pub/CFHT/2366432o.fits.fz?RUNID=queoo1qg8y4pgiep
9997
https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/data/pub/CFHT/2366432p.fits.fz?RUNID=queoo1qg8y4pgiep
@@ -118,12 +116,10 @@ auxiliary data (in this case preview files)
118116
>>> result = cadc.query_region('08h45m07.5s +54d18m00s')
119117
>>> print(len(result))
120118
3034
121-
122-
.. doctest-skip::
123119
>>> urls = cadc.get_data_urls(result[result['target_name'] == 'Nr3491_1'],
124120
... include_auxiliaries=True)
125121
>>> for url in urls:
126-
... print(url)
122+
... print(url) # doctest: +IGNORE_OUTPUT
127123
...
128124
https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/data/pub/CFHT/2376828o_preview_zoom_1024.jpg?RUNID=tqlxhnxndjs1xhd3
129125
https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/data/pub/CFHT/2376828o_preview_256.jpg?RUNID=tqlxhnxndjs1xhd3
@@ -160,7 +156,6 @@ If only a subsection of the FITS file is needed, CADC can query an
160156
area and resolve the cutout of a result.
161157

162158
.. code-block:: python
163-
.. doctest-skip::
164159
.. doctest-remote-data::
165160

166161
>>> from astropy import units as u
@@ -170,7 +165,7 @@ area and resolve the cutout of a result.
170165
>>> radius = 0.01*u.deg
171166
>>> images = cadc.get_images(coords, radius, collection='CFHT')
172167
>>> for image in images:
173-
... print(image)
168+
... print(image) # doctest: +IGNORE_OUTPUT
174169
...
175170
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805a06ef0>]
176171
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805b23b38>]
@@ -180,7 +175,6 @@ Alternatively, if the query result is large and data does not need to be
180175
in memory, lazy access to the downloaded FITS file can be used.
181176

182177
.. code-block:: python
183-
.. doctest-skip::
184178
.. doctest-remote-data::
185179

186180
>>> from astropy import units as u
@@ -192,7 +186,7 @@ in memory, lazy access to the downloaded FITS file can be used.
192186
>>> readable_objs = cadc.get_images_async(coords, radius,
193187
... collection='CFHT')
194188
>>> for obj in readable_objs:
195-
... print(obj)
189+
... print(obj) # doctest: +IGNORE_OUTPUT
196190
...
197191
Downloaded object from URL https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2234132o.fits.fz&RUNID=pot39nwwtaht03wc&POS=CIRCLE+26.2812589776878+23.299999818906816+0.01 with ID 140045451168112
198192
Downloaded object from URL https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368279p.fits.fz&RUNID=pot39nwwtaht03wc&POS=CIRCLE+26.2812589776878+23.299999818906816+0.01 with ID 140045451142576
@@ -212,7 +206,6 @@ are needed, the result table can be passed into the
212206
cutout coordinates and radius.
213207

214208
.. code-block:: python
215-
.. doctest-skip::
216209
.. doctest-remote-data::
217210

218211
>>> from astroquery.cadc import Cadc
@@ -223,7 +216,7 @@ cutout coordinates and radius.
223216
>>> results = cadc.query_region(coords, radius, collection='CFHT')
224217
>>> filtered_results = results[results['time_exposure'] > 120.0]
225218
>>> image_list = cadc.get_image_list(filtered_results, coords, radius)
226-
>>> print(image_list)
219+
>>> print(image_list) # doctest: +IGNORE_OUTPUT
227220
['https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368278o.fits.fz&RUNID=dbuswaj4zwruzi92&POS=CIRCLE+26.2812589776878+23.299999818906816+0.1',
228221
'https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368278p.fits.fz&RUNID=dbuswaj4zwruzi92&POS=CIRCLE+26.2812589776878+23.299999818906816+0.1',
229222
'https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368279p.fits.fz&RUNID=dbuswaj4zwruzi92&POS=CIRCLE+26.2812589776878+23.299999818906816+0.1',
@@ -508,15 +501,14 @@ The results can be saved in memory (default) or in a file.
508501
Query without saving results in a file:
509502

510503
.. code-block:: python
511-
.. doctest-skip::
512504
.. doctest-remote-data::
513505

514506
>>> from astroquery.cadc import Cadc
515507
>>> cadc = Cadc()
516508
>>> job = cadc.create_async("SELECT TOP 100 observationID, instrument_name, target_name FROM caom2.Observation AS Observation")
517509
>>> job.run().wait()
518510
>>> job.raise_if_error()
519-
>>> print(job.fetch_result().to_table())
511+
>>> print(job.fetch_result().to_table()) # doctest: +IGNORE_OUTPUT
520512
observationID intent
521513
----------------------------------------------- -----------
522514
j8eh03boq science
@@ -552,7 +544,6 @@ the job.
552544

553545

554546
.. code-block:: python
555-
.. doctest-skip::
556547
.. doctest-remote-data::
557548

558549
>>> from astroquery.cadc import Cadc
@@ -561,7 +552,7 @@ the job.
561552
>>> job.run().wait()
562553
>>> job.raise_if_error()
563554
>>> loaded_job = cadc.load_async_job(jobid=job.job_id)
564-
>>> print(loaded_job.fetch_result().to_table())
555+
>>> print(loaded_job.fetch_result().to_table()) # doctest: +IGNORE_OUTPUT
565556
observationID instrument_name target_name
566557
---------------------------- ---------------- --------------------------------
567558
C090503_0500 CPAPIR SH87

0 commit comments

Comments
 (0)