Skip to content

Commit 9a23cc4

Browse files
committed
astropy unit needs to be assigned to entire list rather than indiv elements
1 parent 519273b commit 9a23cc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/mast/cutouts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ def _parse_cutout_size(size, timeout=None, mission=None):
9999
if (len(size) == 2) & (mission == 'TESS'):
100100

101101
if np.isscalar(size[0]):
102+
print(size)
102103
size = size * u.pixel
104+
103105
with u.set_enabled_equivalencies(u.pixel_scale(21 * u.arcsec / u.pixel)):
104-
limit_reached = (size > 30 * u.pixel).any()
106+
limit_reached = (size * size[0].unit > 30 * u.pixel).any()
105107

106108

107109
# Getting x and y out of the size

0 commit comments

Comments
 (0)