Skip to content

Commit

Permalink
catching all array-like inputs. lists, tuples, np arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedina authored and bsipocz committed Jun 8, 2023
1 parent 0148aea commit 0f52265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroquery/mast/cutouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _parse_cutout_size(size, timeout=None, mission=None):
limit_reached = False

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

0 comments on commit 0f52265

Please sign in to comment.