Skip to content

NIST: query has different results when running directly vs in tests #2922

@bsipocz

Description

@bsipocz

The following passes in the test suite without issues (pytest astroquery/nist/tests/test_nist_remote.py::TestNist::test_query -R), but has different result when running directly in a python session. Not sure the reason yet, but it can be investigated along with #2920

from astropy import units as u
from astroquery.nist import Nist
result = Nist.query(4000 * u.AA, 7000 * u.AA)

assert set(result['TP'].filled()) == set(['T8637', 'T7771', 'N/A'])

Note the extra 'T7651' in the local results:

>>> set(result['TP'].filled())
{np.str_('N/A'), np.str_('T7651'), np.str_('T7771'), np.str_('T8637')}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions