Skip to content

Commit f112247

Browse files
committed
cleanup molwt/tag parsing
1 parent 87d2462 commit f112247

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/linelists/cdms/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,8 @@ def _parse_result(self, response, *, verbose=False):
262262
'DR': 36,
263263
'ELO': 38,
264264
'GUP': 47,
265-
'MOLWT': 50,
266-
'TAG': 54,
267-
'QNFMT': 58,
265+
'TAG': 51,
266+
'QNFMT': 57,
268267
'Ju': 61,
269268
'Ku': 63,
270269
'vu': 65,
@@ -288,6 +287,7 @@ def _parse_result(self, response, *, verbose=False):
288287
result['FREQ'].unit = u.MHz
289288
result['ERR'].unit = u.MHz
290289

290+
result['MOLWT'] = [int(x/1e3) for x in result['TAG']]
291291
result['Lab'] = result['MOLWT'] < 0
292292
result['MOLWT'] = np.abs(result['MOLWT'])
293293
result['MOLWT'].unit = u.Da

0 commit comments

Comments
 (0)