@@ -56,7 +56,9 @@ def query_tap(self, query, *, async_mode=False, maxrec=None):
56
56
----------
57
57
query : str
58
58
ADQL query to be executed
59
- maxrec : int
59
+ async_mode : bool, optional
60
+ if True query is run as an async job
61
+ maxrec : int, optional
60
62
maximum number of records to return
61
63
62
64
Returns
@@ -159,7 +161,7 @@ def list_collections(self, servicetype=None):
159
161
@deprecated_renamed_argument (("selcols" , "cache" , "verbose" ), ("columns" , None , None ), since = "0.4.7" )
160
162
def query_region (self , coordinates = None , * , catalog = None , spatial = 'Cone' ,
161
163
radius = 10 * u .arcsec , width = None , polygon = None ,
162
- get_query_payload = False , columns = '*' ,
164
+ get_query_payload = False , columns = '*' , async_mode = False ,
163
165
verbose = False , cache = True ):
164
166
"""
165
167
Queries the IRSA TAP server around a coordinate and returns a `~astropy.table.Table` object.
@@ -194,6 +196,8 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
194
196
Defaults to `False`.
195
197
columns : str, optional
196
198
Target column list with value separated by a comma(,)
199
+ async_mode : bool, optional
200
+ if True query is run as an async job
197
201
198
202
Returns
199
203
-------
@@ -243,7 +247,7 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
243
247
244
248
if get_query_payload :
245
249
return adql
246
- response = self .query_tap (query = adql )
250
+ response = self .query_tap (query = adql , async_mode = async_mode )
247
251
248
252
return response .to_table ()
249
253
0 commit comments