Skip to content

Commit 8fa6a19

Browse files
rickynilssonbsipocz
authored andcommitted
Make TAP_TABLES a property of NasaExoplanetArchiveClass.
1 parent c95094d commit 8fa6a19

File tree

1 file changed

+7
-0
lines changed
  • astroquery/nasa_exoplanet_archive

1 file changed

+7
-0
lines changed

astroquery/nasa_exoplanet_archive/core.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ class NasaExoplanetArchiveClass(BaseQuery):
130130
TIMEOUT = conf.timeout
131131
CACHE = conf.cache
132132

133+
# Make TAP_TABLES an attribute of NasaExoplanetArchiveClass
134+
@property
135+
def TAP_TABLES(self):
136+
if not hasattr(self, '_tap_tables'):
137+
self._tap_tables = get_tap_tables(conf.url_tap)
138+
return self._tap_tables
139+
133140
# Ensures methods can be called either as class methods or instance methods. This is the basic query method.
134141
@class_or_instance
135142
def query_criteria_async(self, table, get_query_payload=False, cache=None, **criteria):

0 commit comments

Comments
 (0)