Skip to content

Commit e35220b

Browse files
authored
Merge pull request #3008 from bsipocz/BUG_cdms_windows_integer
BUG: changing int comparison to fix incompatibility with astropy 6.1
2 parents 1626ac1 + b85a49e commit e35220b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ mpc
1313

1414
- Parse star catalog information when querying observations database [#2957]
1515

16+
linelists.cdms
17+
^^^^^^^^^^^^^^
18+
19+
- Fix result parsing incompatibility with astropy 6.1 on Windows systems. [#3008]
20+
1621
splatalogue
1722
^^^^^^^^^^^
1823

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)