Skip to content
New issue

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

CO and HCN are no longer present in LAMDA database? #296

Closed
mkelley opened this issue Sep 25, 2021 · 2 comments
Closed

CO and HCN are no longer present in LAMDA database? #296

mkelley opened this issue Sep 25, 2021 · 2 comments

Comments

@mkelley
Copy link
Member

mkelley commented Sep 25, 2021

Remote test test_einstein() in test_prodrate_remote.py fails, apparently due to missing molecules:

    @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:

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'}
@mkelley
Copy link
Member Author

mkelley commented Sep 26, 2021

The test will be skipped for now via #297

@mkelley
Copy link
Member Author

mkelley commented Feb 5, 2022

CO and HCN are present now and the test is passing.

@mkelley mkelley closed this as completed Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant