Skip to content

Commit eb166f5

Browse files
mstcyr2bsipocz
authored andcommitted
Replacing doctest-skips
1 parent 4880b1d commit eb166f5

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

docs/mast/mast.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ Radius is an optional parameter and the default is 0.2 degrees.
8484
Optional parameters must be labeled. For example the query above will produce
8585
an error if the "radius" field is not specified.
8686

87-
.. doctest-skip::
87+
.. doctest-remote-data::
8888

8989
>>> obs_table = Observations.query_object("M8",".02 deg")
90+
...
9091
TypeError: query_object_async() takes 2 positional arguments but 3 were given
9192

9293

@@ -222,9 +223,10 @@ The `~astroquery.mast.ObservationsClass.get_metadata` function only accepts the
222223
"observations" or "products" as a parameter. Any other string or spelling will result
223224
in an error.
224225

225-
.. doctest-skip::
226+
.. doctest-remote-data::
226227

227228
>>> meta_table = Observations.get_metadata("observation")
229+
...
228230
InvalidQueryError: Unknown query type.
229231

230232

@@ -412,14 +414,16 @@ The `~astroquery.mast.ObservationsClass.download_file` and `~astroquery.mast.Obs
412414
methods are not interchangeable. Using the incorrect method for either single files or product lists will result
413415
in an error.
414416

415-
.. doctest-skip::
417+
.. doctest-remote-data::
416418

417419
>>> result = Observations.download_products(product) # doctest: +IGNORE_OUTPUT
420+
...
418421
RemoteServiceError: Error converting data type varchar to bigint.
419422

420-
.. doctest-skip::
423+
.. doctest-remote-data::
421424

422425
>>> result = Observations.download_file(data_products)
426+
...
423427
TypeError: can only concatenate str (not "Table") to str
424428

425429

@@ -693,9 +697,10 @@ requires a sky position with a right ascension (RA) between 0 and 360 degrees an
693697
a declination between -90 and 90 degrees. Any values outside of this range will
694698
result in an error.
695699

696-
.. doctest-skip::
700+
.. doctest-remote-data::
697701

698702
>>> catalog_data = Catalogs.query_object("-158.47924 -7.30962", catalog="Galex")
703+
...
699704
ResolverError: Could not resolve -158.47924 -7.30962 to a sky position.
700705

701706

@@ -917,9 +922,10 @@ Given an HSC Match ID, return all catalog results.
917922
"MatchID" is case sensitive in this case, and will produce an error with different
918923
capitalization.
919924

920-
.. doctest-skip::
925+
.. doctest-remote-data::
921926

922927
>>> matchid = catalog_data[0]["matchid"]
928+
...
923929
KeyError: 'matchid'
924930

925931
HSC spectra accessed through this class as well. `~astroquery.mast.CatalogsClass.get_hsc_spectra`
@@ -1028,9 +1034,10 @@ not explicitly called for TICA.
10281034

10291035
The SkyCoord constructor requires the 'unit' parameter. Unspecified units will result in an error.
10301036

1031-
.. doctest-skip::
1037+
.. doctest-remote-data::
10321038

10331039
>>> cutout_coord = SkyCoord(107.18696, -70.50919)
1040+
...
10341041
UnitTypeError: Longitude instances require units equivalent to 'rad', but no unit was given.
10351042

10361043
For users with time-sensitive targets who would like cutouts from the latest observations,

0 commit comments

Comments
 (0)