Skip to content

Commit cf66f41

Browse files
committed
DOC: temporarily ignoring warnings
1 parent d7640c6 commit cf66f41

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/cadc/cadc.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ these collections:
4141
TESS : {'Description': 'The TESS collection at the CADC', 'Bands': ['Optical']}
4242
UKIRT : {'Description': 'The UKIRT collection at the CADC', 'Bands': ['Infrared|Optical', '', 'Optical', 'Infrared']}
4343
VGPS : {'Description': 'The VGPS collection at the CADC', 'Bands': ['Radio']}
44-
VLASS : {'Description': 'The VLASS collection at the CADC', 'Bands': ['', 'Radio']}
44+
VLASS : {'Description': 'The VLASS collection at the CADC', 'Bands': ['Radio']}
4545
WALLABY : {'Description': 'The WALLABY collection at the CADC', 'Bands': ['Radio']}
4646
XMM : {'Description': 'The XMM collection at the CADC', 'Bands': ['Optical', 'UV', 'X-ray']}
4747

@@ -51,7 +51,7 @@ region or by name. The following example queries CADC for Canada
5151
France Hawaii Telescope (CFHT) data for a given region and resolves
5252
the URLs for downloading the corresponding data.
5353

54-
54+
.. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
5555
.. doctest-remote-data::
5656

5757
>>> from astroquery.cadc import Cadc
@@ -73,7 +73,7 @@ the URLs for downloading the corresponding data.
7373
caom:CFHT/2583703 2583703 ... 2021-02-26T10:37:42.355
7474
caom:CFHT/2376828 2376828 ... 2021-09-01T23:48:18.790
7575
caom:CFHT/2376828 2376828 ... 2021-09-01T23:48:18.790
76-
>>> urls = cadc.get_data_urls(result)
76+
>>> urls = cadc.get_data_urls(result) # doctest: +IGNORE_WARNINGS
7777
>>> for url in urls:
7878
... print(url) #doctest: +IGNORE_OUTPUT
7979
...
@@ -92,14 +92,14 @@ the results on the name of the target (as an example - any other
9292
filtering possible) and resolves the URLs for both the primary and
9393
auxiliary data (in this case preview files)
9494

95-
95+
.. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
9696
.. doctest-remote-data::
9797

9898
>>> from astroquery.cadc import Cadc
9999
>>> cadc = Cadc()
100100
>>> result = cadc.query_region('08h45m07.5s +54d18m00s')
101101
>>> urls = cadc.get_data_urls(result[result['target_name'] == 'Nr3491_1'],
102-
... include_auxiliaries=True)
102+
... include_auxiliaries=True) # doctest: +IGNORE_WARNINGS
103103
>>> for url in urls:
104104
... print(url) # doctest: +IGNORE_OUTPUT
105105
...
@@ -136,15 +136,15 @@ the CADC metadata.
136136
If only a subsection of the FITS file is needed, CADC can query an
137137
area and resolve the cutout of a result.
138138

139-
139+
.. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
140140
.. doctest-remote-data::
141141

142142
>>> from astropy import units as u
143143
>>> from astroquery.cadc import Cadc
144144
>>> cadc = Cadc()
145145
>>> coords = '01h45m07.5s +23d18m00s'
146146
>>> radius = 0.01*u.deg
147-
>>> images = cadc.get_images(coords, radius, collection='CFHT')
147+
>>> images = cadc.get_images(coords, radius, collection='CFHT') # doctest: +IGNORE_WARNINGS
148148
>>> images # doctest: +IGNORE_OUTPUT
149149
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805a06ef0>]
150150
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805b23b38>]
@@ -153,7 +153,7 @@ area and resolve the cutout of a result.
153153
Alternatively, if the query result is large and data does not need to be
154154
in memory, lazy access to the downloaded FITS file can be used.
155155

156-
156+
.. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
157157
.. doctest-remote-data::
158158

159159
>>> from astropy import units as u
@@ -162,7 +162,7 @@ in memory, lazy access to the downloaded FITS file can be used.
162162
>>> cadc = Cadc()
163163
>>> coords = SkyCoord(10, 20, unit='deg')
164164
>>> radius = 0.01*u.deg
165-
>>> readable_objs = cadc.get_images_async(coords, radius, collection='CFHT')
165+
>>> readable_objs = cadc.get_images_async(coords, radius, collection='CFHT') # doctest: +IGNORE_WARNINGS
166166
>>> readable_objs # doctest: +IGNORE_OUTPUT
167167
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
168168
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
@@ -181,7 +181,7 @@ are needed, the result table can be passed into the
181181
`~astroquery.cadc.CadcClass.get_image_list` function, along with the
182182
cutout coordinates and radius.
183183

184-
184+
.. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
185185
.. doctest-remote-data::
186186

187187
>>> from astroquery.cadc import Cadc
@@ -191,7 +191,7 @@ cutout coordinates and radius.
191191
>>> radius = 0.1*u.deg
192192
>>> results = cadc.query_region(coords, radius, collection='CFHT')
193193
>>> filtered_results = results[results['time_exposure'] > 120.0]
194-
>>> image_list = cadc.get_image_list(filtered_results, coords, radius)
194+
>>> image_list = cadc.get_image_list(filtered_results, coords, radius) # doctest: +IGNORE_WARNINGS
195195
>>> print(image_list) # doctest: +IGNORE_OUTPUT
196196
['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',
197197
'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',

0 commit comments

Comments
 (0)