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

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

Open
bsipocz opened this issue Jan 8, 2024 · 0 comments
Open

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

bsipocz opened this issue Jan 8, 2024 · 0 comments

Comments

@bsipocz
Copy link
Member

bsipocz commented Jan 8, 2024

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')}
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