@@ -95,7 +95,7 @@ def _login(self, *, username=None, store_password=False,
95
95
96
96
return authenticated
97
97
98
- def query_region_async (self , coordinates , radius = 1 * u .arcmin , height = None , width = None ,
98
+ def query_region_async (self , coordinates , * , radius = 1 * u .arcmin , height = None , width = None ,
99
99
get_query_payload = False , cache = True ):
100
100
"""
101
101
Queries a region around the specified coordinates. Either a radius or both a height and a width
@@ -135,7 +135,7 @@ def query_region_async(self, coordinates, radius=1*u.arcmin, height=None, width=
135
135
136
136
# Create the dict of HTTP request parameters by parsing the user
137
137
# entered values.
138
- def _args_to_payload (self , radius = 1 * u .arcmin , ** kwargs ):
138
+ def _args_to_payload (self , * , radius = 1 * u .arcmin , ** kwargs ):
139
139
request_payload = dict ()
140
140
141
141
# Convert the coordinates to FK5
@@ -206,7 +206,7 @@ def _args_to_payload(self, radius=1*u.arcmin, **kwargs):
206
206
# the methods above implicitly call the private _parse_result method.
207
207
# This should parse the raw HTTP response and return it as
208
208
# an `astropy.table.Table`.
209
- def _parse_result (self , response , verbose = False ):
209
+ def _parse_result (self , response , * , verbose = False ):
210
210
# if verbose is False then suppress any VOTable related warnings
211
211
if not verbose :
212
212
commons .suppress_vo_warnings ()
@@ -284,7 +284,7 @@ def _complete_job(self, job_url, verbose):
284
284
285
285
return fileurls
286
286
287
- def stage_data (self , table , verbose = False ):
287
+ def stage_data (self , table , * , verbose = False ):
288
288
"""
289
289
Request access to a set of data files. All requests for data must use authentication. If you have access to the
290
290
data, the requested files will be brought online and a set of URLs to download the files will be returned.
@@ -367,7 +367,7 @@ def cutout(self, table, *, coordinates=None, radius=1*u.arcmin, height=None,
367
367
368
368
return self ._complete_job (job_url , verbose )
369
369
370
- def download_files (self , urls , savedir = '' ):
370
+ def download_files (self , urls , * , savedir = '' ):
371
371
"""
372
372
Download a series of files
373
373
@@ -445,7 +445,7 @@ def _parse_datalink_for_service_and_id(self, response, service_name):
445
445
446
446
return async_url , authenticated_id_token
447
447
448
- def _create_soda_job (self , authenticated_id_tokens , soda_url = None ):
448
+ def _create_soda_job (self , authenticated_id_tokens , * , soda_url = None ):
449
449
"""
450
450
Creates the async job, returning the url to query the job status and details
451
451
@@ -488,7 +488,7 @@ def _add_cutout_params(self, job_location, verbose, cutout_spec):
488
488
resp = self ._request ('POST' , job_location + '/parameters' , data = cutout_spec , cache = False )
489
489
resp .raise_for_status ()
490
490
491
- def _run_job (self , job_location , verbose , poll_interval = 20 ):
491
+ def _run_job (self , job_location , verbose , * , poll_interval = 20 ):
492
492
"""
493
493
Start an async job (e.g. TAP or SODA) and wait for it to be completed.
494
494
0 commit comments