We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote test test_einstein() in test_prodrate_remote.py fails, apparently due to missing molecules:
test_einstein()
test_prodrate_remote.py
@remote_data def test_einstein(): transition_freq_list = [(1611.7935180 * u.GHz).to('MHz'), (177.26111120 * u.GHz).to('MHz')] mol_tag_list = [28001, 27001] temp_estimate = 300. * u.K result = [] catalog_result = [] cat = JPLSpec.get_species_table() for i in range(0, 2): transition_freq = transition_freq_list[i] mol_tag = mol_tag_list[i] mol_data = Phys.from_jplspec(temp_estimate, transition_freq, mol_tag) intl = intensity_conversion(mol_data) mol_data.apply([intl.value] * intl.unit, name='intl') au = einstein_coeff(mol_data) result.append(au.value) mol = cat[cat['TAG'] == mol_tag] mol_name = mol['NAME'].data[0] > lam_search = Lamda.query(mol=mol_name.lower()) ../../.tox/py39-test/lib/python3.9/site-packages/sbpy/activity/gas/tests/test_prodrate_remote.py:179: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../.tox/py39-test/lib/python3.9/site-packages/astroquery/lamda/core.py:100: in query self._get_molfile(mol, timeout=timeout, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <astroquery.lamda.core.LamdaClass object at 0x7fb3fe47f400>, mol = 'co', cache = True, timeout = None def _get_molfile(self, mol, cache=True, timeout=None): """ """ if mol not in self.molecule_dict: > raise InvalidQueryError("Molecule {0} is not in the valid " "molecule list. See Lamda.molecule_dict") E astroquery.exceptions.InvalidQueryError: Molecule {0} is not in the valid molecule list. See Lamda.molecule_dict ../../.tox/py39-test/lib/python3.9/site-packages/astroquery/lamda/core.py:50: InvalidQueryError
When I check Lamda for what's available, I do not see CO or HCN:
Lamda
In [35]: Lamda.get_molecules() Out[35]: {'arh+': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/arh+.dat', 'cf+': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/cf+.dat', 'ch-nohfs': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ch-nohfs.dat', 'ch-h2': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ch-h2.dat', 'ch-h': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ch-h.dat', 'hd': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/hd.dat', 'hf': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/hf.dat', 'oh+': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/oh+.dat', 'o2': 'http://home.strw.leidenuniv.nl/~moldata/datafiles/o2.dat', 'pn-h2': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/pn-h2.dat', 'PO_hfs': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/PO_hfs.dat', 'c2h_h2_e': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/c2h_h2_e.dat', 'c2h_oph2': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/c2h_oph2.dat', 'ch2_h2_ortho': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ch2_h2_ortho.dat', 'ch2_h2_para': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ch2_h2_para.dat', 'ph2s': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ph2s.dat', 'oh2s': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/oh2s.dat', 'ph2cs': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/ph2cs.dat', 'oh2cs': 'http://www.strw.leidenuniv.nl/~moldata/datafiles/oh2cs.dat'}
The text was updated successfully, but these errors were encountered:
The test will be skipped for now via #297
Sorry, something went wrong.
CO and HCN are present now and the test is passing.
No branches or pull requests
Remote test
test_einstein()
intest_prodrate_remote.py
fails, apparently due to missing molecules:When I check
Lamda
for what's available, I do not see CO or HCN:The text was updated successfully, but these errors were encountered: