Skip to content

Commit 462c2da

Browse files
committed
BUG: changing int comparison to fix incompatibility with astropy 6.1
1 parent 2f87333 commit 462c2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/linelists/cdms/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _parse_result(self, response, *, verbose=False):
261261
qnind = qn+suf
262262
fix_keys.append(qnind)
263263
for key in fix_keys:
264-
if result[key].dtype != int:
264+
if not np.issubdtype(result[key].dtype, np.integer):
265265
intcol = np.array(list(map(parse_letternumber, result[key])),
266266
dtype=int)
267267
result[key] = intcol

0 commit comments

Comments
 (0)