Skip to content

Commit ebda867

Browse files
committed
add ch3cn test and shift QNFMT by one
1 parent dbba11a commit ebda867

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

astroquery/linelists/cdms/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _parse_cat(self, response, *, verbose=False):
451451
'ELO': 32,
452452
'GUP': 42,
453453
'TAG': 44,
454-
'QNFMT': 52,
454+
'QNFMT': 51,
455455
'Q1': 55,
456456
'Q2': 57,
457457
'Q3': 59,

astroquery/linelists/cdms/tests/test_cdms_remote.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_remote_300K():
3939
assert tbl['ERR'][0] == 49.13
4040
assert tbl['LGINT'][0] == -4.2182
4141
assert tbl['MOLWT'][0] == 18
42-
42+
assert tbl['TAG'][0] == 18505
4343

4444
@pytest.mark.remote_data
4545
def test_co_basics():
@@ -49,6 +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
53+
54+
55+
@pytest.mark.remote_data
56+
def test_ch3cn_negqn():
57+
tbl = CDMS.get_molecule('041501')
58+
fourtominusthree = tbl[(tbl['Q1'] == 4) & (tbl['Q2'] == -3)]
59+
assert len(fourtominusthree) >= 1
60+
assert tbl['TAG'][0] == 41501
5261

5362

5463
@pytest.mark.remote_data
@@ -65,6 +74,7 @@ def test_propanediol():
6574
# check that the parser worked - this will be string or obj otherwise
6675
assert 'int' in tbl['Ku'].dtype.name
6776
assert tbl['MOLWT'][0] == 76
77+
assert tbl['TAG'][0] == 76513
6878

6979

7080
@pytest.mark.remote_data

0 commit comments

Comments
 (0)