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

NASAExoplanetArchive returns InvalidTableError when attempting to query DI_STARS_EXEP #3090

Open
nanoza opened this issue Sep 3, 2024 · 2 comments

Comments

@nanoza
Copy link

nanoza commented Sep 3, 2024

Hello all,

This is my first time submitting an issue so bear with me:

I'm trying to retrieve HWO ExEP Precursor Science Stars using the NASAExoplanetArchive module. The table is listed as 'DI_STARS_EXEP' in NASAExoplanetArchive.TAP_TABLES.

When I try to perform a general retrieval via NASAExoplanetArchive.query_criteria(table='DI_STARS_EXEP', select='*'), the module returns InvalidTableError: 'di_stars_exep' is not a valid table.

I have tried updating astroquery to see if that would solve the issue but it did not.

Thank you for reading!

@bsipocz
Copy link
Member

bsipocz commented Sep 3, 2024

cc @rickynilsson

@keflavich
Copy link
Contributor

Just confirming that I get the same result:

In [1]: from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive

In [2]: NasaExoplanetArchive.query_criteria(table='DI_STARS_EXEP', select='*')
Traceback (most recent call last):
  Cell In[2], line 1
    NasaExoplanetArchive.query_criteria(table='DI_STARS_EXEP', select='*')
  File ~/repos/astroquery/astroquery/utils/class_or_instance.py:25 in f
    return self.fn(obj, *args, **kwds)
  File ~/repos/astroquery/astroquery/utils/process_asyncs.py:29 in newmethod
    result = self._parse_result(response, verbose=verbose)
  File ~/repos/astroquery/astroquery/ipac/nexsci/nasa_exoplanet_archive/core.py:619 in _parse_result
    self._handle_error(text)
  File ~/repos/astroquery/astroquery/ipac/nexsci/nasa_exoplanet_archive/core.py:505 in _handle_error
    raise InvalidTableError("'{0}' is not a valid table".format(match.group(1).lower()))
InvalidTableError: 'di_stars_exep' is not a valid table

but it should be based on the documentation, which says to look at this list:

In [5]: NasaExoplanetArchive.TAP_TABLES
Out[5]:
['spectra',
 'TD',
 'pscomppars',
 'superwasptimeseries',
 'kelttimeseries',
 'DI_STARS_EXEP',
 'stellarhosts',
 'transitspec',
 'emissionspec',
 'ps',
 'keplernames',
 'k2names',
 'toi',
 'CUMULATIVE',
 'Q1_Q6_KOI',
 'Q1_Q8_KOI',
 'Q1_Q12_KOI',
 'Q1_Q16_KOI',
 'Q1_Q17_DR24_KOI',
 'Q1_Q17_DR25_KOI',
 'Q1_Q17_DR25_SUP_KOI',
 'Q1_Q12_TCE',
 'Q1_Q16_TCE',
 'Q1_Q17_DR24_TCE',
 'Q1_Q17_DR25_TCE',
 'stellarhosts',
 'ukirttimeseries',
 'ml',
 'object_aliases',
 'k2pandc',
 'K2TARGETS',
 'KEPLERTIMESERIES',
 'KEPLERSTELLAR',
 'Q1_Q12_KS',
 'Q1_Q16_KS',
 'Q1_Q17_DR24_KS',
 'Q1_Q17_DR25_KS',
 'Q1_Q17_DR25_SUP_KS']

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

3 participants