Skip to content

Commit d2638ba

Browse files
committed
catching all array-like inputs. lists, tuples, np arrays
1 parent e2039c6 commit d2638ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/mast/cutouts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _parse_cutout_size(size, timeout=None, mission=None):
7272
limit_reached = False
7373

7474
# Checking 2d size inputs for the recommended cutout size
75-
if isinstance(size, list) & (mission == 'TESS'):
75+
if not isinstance(size, (int, float, u.Quantity)) & (mission == 'TESS'):
7676
if len(size) == 2:
7777
if np.isscalar(size[0]):
7878
size = [size[0] * u.pixel, size[1] * u.pixel]

0 commit comments

Comments
 (0)