Skip to content

Commit bbde2c6

Browse files
rickynilssonbsipocz
authored andcommitted
Hard code TAP tables again
1 parent 566354e commit bbde2c6

File tree

1 file changed

+8
-8
lines changed
  • astroquery/nasa_exoplanet_archive

1 file changed

+8
-8
lines changed

astroquery/nasa_exoplanet_archive/core.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ def get_access_url(service='tap'):
9898
return url
9999

100100

101-
@pytest.mark.remote_data
102-
def get_tap_tables(url):
103-
"""Tables accessed by API are gradually migrating to TAP service. Generate current list of tables in TAP."""
104-
tap = pyvo.dal.tap.TAPService(baseurl=url)
105-
response = tap.search(query="select * from TAP_SCHEMA.tables", language="ADQL")
106-
tables = [table for table in response["table_name"].data if "TAP_SCHEMA." not in table]
107-
return tables
101+
# @pytest.mark.remote_data
102+
# def get_tap_tables(url):
103+
# """Tables accessed by API are gradually migrating to TAP service. Generate current list of tables in TAP."""
104+
# tap = pyvo.dal.tap.TAPService(baseurl=url)
105+
# response = tap.search(query="select * from TAP_SCHEMA.tables", language="ADQL")
106+
# tables = [table for table in response["table_name"].data if "TAP_SCHEMA." not in table]
107+
# return tables
108108

109109

110-
TAP_TABLES = get_tap_tables(conf.url_tap)
110+
TAP_TABLES = ['ps', 'pscomppars'] # get_tap_tables(conf.url_tap)
111111

112112

113113
class InvalidTableError(InvalidQueryError):

0 commit comments

Comments
 (0)