Skip to content

Commit bb23878

Browse files
committed
shift tag back one spot. Fix tests to accommodate more complete "tag" name
1 parent f112247 commit bb23878

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

astroquery/linelists/cdms/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _parse_result(self, response, *, verbose=False):
262262
'DR': 36,
263263
'ELO': 38,
264264
'GUP': 47,
265-
'TAG': 51,
265+
'TAG': 50,
266266
'QNFMT': 57,
267267
'Ju': 61,
268268
'Ku': 63,

astroquery/linelists/cdms/tests/test_cdms_remote.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def test_co_basics():
4949
assert tbl['Q1'][10] == 11
5050
assert tbl['Q7'][10] == 10
5151
assert tbl['MOLWT'][0] == 28
52-
assert tbl['TAG'][0] == 28503
52+
assert tbl['TAG'][0] == -28503
5353

5454

5555
@pytest.mark.remote_data
5656
def test_ch3cn_negqn():
5757
tbl = CDMS.get_molecule('041501')
5858
fourtominusthree = tbl[(tbl['Q1'] == 4) & (tbl['Q2'] == -3)]
5959
assert len(fourtominusthree) >= 1
60-
assert tbl['TAG'][0] == 41501
60+
assert tbl['TAG'][0] == -41501
6161

6262

6363
@pytest.mark.remote_data
@@ -103,16 +103,16 @@ def test_molecule_with_parens():
103103

104104
MC = np.ma.core.MaskedConstant()
105105

106-
for col, val in zip(tbl[0].colnames, (232588.7246, 0.2828, -4.1005, 3, 293.8540, 445, 66,
107-
506, 303, 44, 14, 30, MC, MC, MC, 45, 13, 33, MC, MC, MC, 'H2C(CN)2', False)):
106+
for col, val in zip(tbl[0].colnames, (232588.7246, 0.2828, -4.1005, 3, 293.8540, 445, 66506,
107+
303, 44, 14, 30, MC, MC, MC, 45, 13, 33, MC, MC, MC, 'H2C(CN)2', 66, False)):
108108
if val is MC:
109109
assert tbl[0][col].mask
110110
else:
111111
assert tbl[0][col] == val
112112

113113
# this test row includes degeneracy = 1225, which covers one of the weird letter-is-number parser cases
114-
for col, val in zip(tbl[16].colnames, (233373.369, 10.26, -4.8704, 3, 1229.0674, 1125, 66,
115-
506, 303, 112, 10, 102, MC, MC, MC, 112, 9, 103, MC, MC, MC, 'H2C(CN)2', False),):
114+
for col, val in zip(tbl[16].colnames, (233373.369, 10.26, -4.8704, 3, 1229.0674, 1125, 66506,
115+
303, 112, 10, 102, MC, MC, MC, 112, 9, 103, MC, MC, MC, 'H2C(CN)2', 66, False),):
116116
if val is MC:
117117
assert tbl[16][col].mask
118118
else:

0 commit comments

Comments
 (0)