Skip to content

Commit 27ec44f

Browse files
committed
removing timeout example, skipping doctest for largequerywarning example
1 parent cd09b99 commit 27ec44f

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
@@ -1050,31 +1050,20 @@ direction, so a user will be met with a warning message if the input cutout size
10501050
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
10511051
around 34 x 34 pixels-squared.
10521052

1053-
.. doctest-remote-data::
1053+
.. doctest-skip::
10541054

10551055
>>> import astropy.units as u
10561056
>>> from astroquery.mast import Tesscut
10571057
>>> from astropy.coordinates import SkyCoord
10581058
...
10591059
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
10601060
>>> hdulist = Tesscut.get_cutouts(coordinates=cutout_coord, size=0.2*u.deg)
1061-
WARNING: InputWarning: You have selected a large cutout size that may result in a timeout error.
1061+
WARNING: LargeQueryWarning: You have selected a large cutout size that may result in a timeout error.
10621062
We suggest limiting the size of your requested cutout, or changing the request timeout limit from
10631063
its default 600 seconds to something higher, using the timeout argument. [astroquery.mast.cutouts]
1064-
1065-
At this point, users may choose to decrease their cutout size or extend the request timeout limit from
1066-
600 seconds to something longer. Using the example above, we will use the ``timeout`` argument to change
1067-
the request timeout limit from 600 seconds to 2600 seconds, or approximately 43 minutes.
10681064

1069-
.. doctest-remote-data::
1070-
1071-
>>> import astropy.units as u
1072-
>>> from astroquery.mast import Tesscut
1073-
>>> from astropy.coordinates import SkyCoord
1074-
...
1075-
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
1076-
>>> hdulist = Tesscut.get_cutouts(coordinates=cutout_coord, size=0.2*u.deg, timeout=2600)
1077-
INFO: Request timeout upper limit is being changed to 2600 seconds. [astroquery.mast.cutouts]
1065+
At this point, users may choose to decrease their cutout size or extend the request timeout limit from
1066+
600 seconds to something longer.
10781067

10791068
Sector information
10801069
------------------

0 commit comments

Comments
 (0)