Skip to content

Commit 324ac45

Browse files
jaymedinabsipocz
authored andcommitted
removing timeout example, skipping doctest for largequerywarning example
1 parent a8b6e5d commit 324ac45

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

docs/mast/mast.rst

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,31 +1073,20 @@ direction, so a user will be met with a warning message if the input cutout size
10731073
those limits. Below is an example of a request using `~astroquery.mast.TesscutClass.get_cutouts` for cutouts of size 0.2 x 0.2 degrees-squared, which is
10741074
around 34 x 34 pixels-squared.
10751075

1076-
.. doctest-remote-data::
1076+
.. doctest-skip::
10771077

10781078
>>> import astropy.units as u
10791079
>>> from astroquery.mast import Tesscut
10801080
>>> from astropy.coordinates import SkyCoord
10811081
...
10821082
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
10831083
>>> hdulist = Tesscut.get_cutouts(coordinates=cutout_coord, size=0.2*u.deg)
1084-
WARNING: InputWarning: You have selected a large cutout size that may result in a timeout error.
1084+
WARNING: LargeQueryWarning: You have selected a large cutout size that may result in a timeout error.
10851085
We suggest limiting the size of your requested cutout, or changing the request timeout limit from
10861086
its default 600 seconds to something higher, using the timeout argument. [astroquery.mast.cutouts]
1087-
1088-
At this point, users may choose to decrease their cutout size or extend the request timeout limit from
1089-
600 seconds to something longer. Using the example above, we will use the ``timeout`` argument to change
1090-
the request timeout limit from 600 seconds to 2600 seconds, or approximately 43 minutes.
10911087

1092-
.. doctest-remote-data::
1093-
1094-
>>> import astropy.units as u
1095-
>>> from astroquery.mast import Tesscut
1096-
>>> from astropy.coordinates import SkyCoord
1097-
...
1098-
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
1099-
>>> hdulist = Tesscut.get_cutouts(coordinates=cutout_coord, size=0.2*u.deg, timeout=2600)
1100-
INFO: Request timeout upper limit is being changed to 2600 seconds. [astroquery.mast.cutouts]
1088+
At this point, users may choose to decrease their cutout size or extend the request timeout limit from
1089+
600 seconds to something longer.
11011090

11021091
Sector information
11031092
------------------

0 commit comments

Comments
 (0)