Skip to content

Commit 8bfeac0

Browse files
authored
Merge pull request #2517 from bsipocz/docs_fix_cadc_failures
DOC: Fixing doctest failures for cadc.rst
2 parents 677c41a + 85c6918 commit 8bfeac0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/cadc/cadc.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ these collections:
3030
...
3131
APASS : {'Description': 'The APASS collection at the CADC', 'Bands': ['Optical', 'Infrared|Optical', '']}
3232
BLAST : {'Description': 'The BLAST collection at the CADC', 'Bands': ['', 'Millimeter']}
33-
CFHT : {'Description': 'The CFHT collection at the CADC', 'Bands': ['Infrared|Optical', 'Infrared|Optical|UV', '', 'Infrared|Optical|UV|EUV|X-ray|Ga', 'Optical', 'Infrared', 'X-ray|Gamma-ray']}
34-
CFHTMEGAPIPE : {'Description': 'The CFHTMEGAPIPE collection at the CADC', 'Bands': ['', 'Infrared|Optical', 'Infrared', 'Optical']}
33+
CFHT : {'Description': 'The CFHT collection at the CADC', 'Bands': ['Infrared|Optical', 'Infrared|Optical|UV', '', 'Optical', 'Infrared']}
34+
CFHTMEGAPIPE : {'Description': 'The CFHTMEGAPIPE collection at the CADC', 'Bands': ['', 'Infrared|Optical', 'Optical']}
3535
CFHTTERAPIX : {'Description': 'The CFHTTERAPIX collection at the CADC', 'Bands': ['Infrared|Optical', 'Optical', 'Infrared']}
3636
CFHTWIRWOLF : {'Description': 'The CFHTWIRWOLF collection at the CADC', 'Bands': ['Infrared']}
3737
CGPS : {'Description': 'The CGPS collection at the CADC', 'Bands': ['Infrared', 'Radio', 'Millimeter', '', 'Millimeter|Infrared']}
@@ -57,7 +57,7 @@ the URLs for downloading the corresponding data.
5757
>>> from astroquery.cadc import Cadc
5858
>>> cadc = Cadc()
5959
>>> result = cadc.query_region('08h45m07.5s +54d18m00s', collection='CFHT')
60-
>>> print(result)
60+
>>> print(result) # doctest: +IGNORE_OUTPUT
6161
observationURI sequenceNumber ... maxLastModified2
6262
...
6363
----------------- -------------- ... -----------------------
@@ -98,8 +98,6 @@ auxiliary data (in this case preview files)
9898
>>> from astroquery.cadc import Cadc
9999
>>> cadc = Cadc()
100100
>>> result = cadc.query_region('08h45m07.5s +54d18m00s')
101-
>>> print(len(result))
102-
3044
103101
>>> urls = cadc.get_data_urls(result[result['target_name'] == 'Nr3491_1'],
104102
... include_auxiliaries=True)
105103
>>> for url in urls:
@@ -127,7 +125,7 @@ the CADC metadata.
127125
>>> result_m31 = cadc.query_name('M31')
128126
>>>
129127
>>> result = cadc.query_name('Nr3491_1')
130-
>>> print(result)
128+
>>> print(result) # doctest: +IGNORE_OUTPUT
131129
observationURI sequenceNumber ... maxLastModified2
132130
...
133131
----------------- -------------- ... -----------------------
@@ -147,7 +145,7 @@ area and resolve the cutout of a result.
147145
>>> coords = '01h45m07.5s +23d18m00s'
148146
>>> radius = 0.01*u.deg
149147
>>> images = cadc.get_images(coords, radius, collection='CFHT')
150-
>>> images # doctest: +IGNORE_OUTPUT
148+
>>> images # doctest: +IGNORE_OUTPUT
151149
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805a06ef0>]
152150
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805b23b38>]
153151

@@ -312,6 +310,7 @@ To get a list of table objects:
312310
caom2.distinct_proposal_pi
313311
caom2.distinct_proposal_title
314312
caom2.HarvestSkipURI
313+
caom2.HarvestState
315314
caom2.SIAv1
316315
ivoa.ObsCore
317316
ivoa.ObsFile

0 commit comments

Comments
 (0)