Skip to content

Commit 97c8ca7

Browse files
committed
LargeQueryWarning
1 parent 9a23cc4 commit 97c8ca7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

astroquery/mast/cutouts.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from astropy.io import fits
2727

2828
from .. import log
29-
from ..exceptions import InputWarning, NoResultsWarning, InvalidQueryError
29+
from ..exceptions import InputWarning, LargeQueryWarning, NoResultsWarning, InvalidQueryError
3030

3131
from .utils import parse_input_location
3232
from .core import MastQueryWithLogin
@@ -105,7 +105,6 @@ def _parse_cutout_size(size, timeout=None, mission=None):
105105
with u.set_enabled_equivalencies(u.pixel_scale(21 * u.arcsec / u.pixel)):
106106
limit_reached = (size * size[0].unit > 30 * u.pixel).any()
107107

108-
109108
# Getting x and y out of the size
110109

111110
if np.isscalar(size[0]):
@@ -129,7 +128,7 @@ def _parse_cutout_size(size, timeout=None, mission=None):
129128
if (limit_reached) & (not timeout):
130129
warnings.warn("You have selected a large cutout size that may result in a timeout error. We suggest limiting"
131130
" the size of your requested cutout, or changing the request timeout limit from its"
132-
" default 600 seconds to something higher, using the timeout argument.", InputWarning)
131+
" default 600 seconds to something higher, using the timeout argument.", LargeQueryWarning)
133132

134133
return {"x": x, "y": y, "units": units}
135134

0 commit comments

Comments
 (0)