@@ -60,6 +60,7 @@ def query_tap(self, query, *, maxrec=None):
60
60
log .debug (f'TAP query: { query } ' )
61
61
return self .tap .search (query , language = 'ADQL' , maxrec = maxrec )
62
62
63
+ @deprecated_renamed_argument (("cache" , "verbose" ), (None , None ), since = "0.4.7" )
63
64
def query_region (self , coordinates = None , * , catalog = None , spatial = 'Cone' ,
64
65
radius = 10 * u .arcsec , width = None , polygon = None ,
65
66
get_query_payload = False , selcols = None ,
@@ -103,11 +104,6 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
103
104
Defaults to `False`.
104
105
selcols : str, optional
105
106
Target column list with value separated by a comma(,)
106
- verbose : bool, optional.
107
- If `True` then displays warnings when the returned VOTable does not
108
- conform to the standard. Defaults to `False`.
109
- cache : bool, optional
110
- Use local cache when set to `True`.
111
107
112
108
Returns
113
109
-------
@@ -160,18 +156,24 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
160
156
161
157
return response .to_table ()
162
158
163
- def list_tap_tables (self ):
164
- tap_tables = Irsa .query_tap ("SELECT * FROM TAP_SCHEMA.tables" )
165
- return tap_tables
166
-
167
- # TODO, deprecate this legacy in favour of full TAP table Table
168
- @deprecated_renamed_argument ("cache" , None , "0.4.7" )
169
- def list_catalogs (self , cache = False ):
159
+ @deprecated_renamed_argument ("cache" , None , since = "0.4.7" )
160
+ def list_catalogs (self , full = False , cache = False ):
170
161
"""
171
- Return a dictionary of IRSA catalogs.
162
+ Return information of available IRSA catalogs.
163
+
164
+ Parameters
165
+ ----------
166
+ full : bool
167
+ If True returns the full schema VOTable. If False returns a dictionary of the table names and
168
+ their description.
169
+
172
170
"""
173
171
tap_tables = Irsa .query_tap ("SELECT * FROM TAP_SCHEMA.tables" )
174
- return {tap_table ['table_name' ]: tap_table ['description' ] for tap_table in tap_tables }
172
+
173
+ if full :
174
+ return tap_tables
175
+ else :
176
+ return {tap_table ['table_name' ]: tap_table ['description' ] for tap_table in tap_tables }
175
177
176
178
# TODO, deprecate this as legacy
177
179
def print_catalogs (self ):
0 commit comments