@@ -48,7 +48,7 @@ def __init__(self):
48
48
self ._survey_list = None
49
49
self .username = None
50
50
51
- def _activate_form (self , response , form_index = 0 , form_id = None , inputs = {},
51
+ def _activate_form (self , response , * , form_index = 0 , form_id = None , inputs = {},
52
52
cache = True , method = None ):
53
53
"""
54
54
Parameters
@@ -191,7 +191,7 @@ def _activate_form(self, response, form_index=0, form_id=None, inputs={},
191
191
192
192
return response
193
193
194
- def _login (self , username = None , store_password = False ,
194
+ def _login (self , * , username = None , store_password = False ,
195
195
reenter_password = False ):
196
196
"""
197
197
Login to the ESO User Portal.
@@ -257,7 +257,7 @@ def _login(self, username=None, store_password=False,
257
257
keyring .set_password ("astroquery:www.eso.org" , username , password )
258
258
return authenticated
259
259
260
- def list_instruments (self , cache = True ):
260
+ def list_instruments (self , * , cache = True ):
261
261
""" List all the available instrument-specific queries offered by the ESO archive.
262
262
263
263
Returns
@@ -280,7 +280,7 @@ def list_instruments(self, cache=True):
280
280
self ._instrument_list .append (instrument )
281
281
return self ._instrument_list
282
282
283
- def list_surveys (self , cache = True ):
283
+ def list_surveys (self , * , cache = True ):
284
284
""" List all the available surveys (phase 3) in the ESO archive.
285
285
286
286
Returns
@@ -311,7 +311,7 @@ def list_surveys(self, cache=True):
311
311
self ._survey_list .append (survey )
312
312
return self ._survey_list
313
313
314
- def query_surveys (self , surveys = '' , cache = True ,
314
+ def query_surveys (self , * , surveys = '' , cache = True ,
315
315
help = False , open_form = False , ** kwargs ):
316
316
"""
317
317
Query survey Phase 3 data contained in the ESO archive.
@@ -369,7 +369,7 @@ def query_surveys(self, surveys='', cache=True,
369
369
else :
370
370
warnings .warn ("Query returned no results" , NoResultsWarning )
371
371
372
- def query_main (self , column_filters = {}, columns = [],
372
+ def query_main (self , * , column_filters = {}, columns = [],
373
373
open_form = False , help = False , cache = True , ** kwargs ):
374
374
"""
375
375
Query raw data contained in the ESO archive.
@@ -403,7 +403,7 @@ def query_main(self, column_filters={}, columns=[],
403
403
return self ._query (url , column_filters = column_filters , columns = columns ,
404
404
open_form = open_form , help = help , cache = cache , ** kwargs )
405
405
406
- def query_instrument (self , instrument , column_filters = {}, columns = [],
406
+ def query_instrument (self , instrument , * , column_filters = {}, columns = [],
407
407
open_form = False , help = False , cache = True , ** kwargs ):
408
408
"""
409
409
Query instrument-specific raw data contained in the ESO archive.
@@ -441,7 +441,7 @@ def query_instrument(self, instrument, column_filters={}, columns=[],
441
441
return self ._query (url , column_filters = column_filters , columns = columns ,
442
442
open_form = open_form , help = help , cache = cache , ** kwargs )
443
443
444
- def _query (self , url , column_filters = {}, columns = [],
444
+ def _query (self , url , * , column_filters = {}, columns = [],
445
445
open_form = False , help = False , cache = True , ** kwargs ):
446
446
447
447
table = None
@@ -486,7 +486,7 @@ def _query(self, url, column_filters={}, columns=[],
486
486
else :
487
487
warnings .warn ("Query returned no results" , NoResultsWarning )
488
488
489
- def get_headers (self , product_ids , cache = True ):
489
+ def get_headers (self , product_ids , * , cache = True ):
490
490
"""
491
491
Get the headers associated to a list of data product IDs
492
492
@@ -557,7 +557,7 @@ def get_headers(self, product_ids, cache=True):
557
557
# Return as Table
558
558
return Table (result )
559
559
560
- def _check_existing_files (self , datasets , continuation = False ,
560
+ def _check_existing_files (self , datasets , * , continuation = False ,
561
561
destination = None ):
562
562
"""Detect already downloaded datasets."""
563
563
@@ -628,7 +628,7 @@ def _download_file(self, url, local_filepath, **kwargs):
628
628
629
629
return resp
630
630
631
- def retrieve_data (self , datasets , continuation = False , destination = None ,
631
+ def retrieve_data (self , datasets , * , continuation = False , destination = None ,
632
632
with_calib = 'none' , request_all_objects = False ,
633
633
unzip = True , request_id = None ):
634
634
"""
@@ -891,7 +891,7 @@ def verify_data_exists(self, dataset):
891
891
892
892
return 'No data returned' not in content
893
893
894
- def query_apex_quicklooks (self , project_id = None , help = False ,
894
+ def query_apex_quicklooks (self , * , project_id = None , help = False ,
895
895
open_form = False , cache = True , ** kwargs ):
896
896
"""
897
897
APEX data are distributed with quicklook products identified with a
@@ -900,7 +900,7 @@ def query_apex_quicklooks(self, project_id=None, help=False,
900
900
901
901
Examples
902
902
--------
903
- >>> tbl = Eso.query_apex_quicklooks('093.C-0144')
903
+ >>> tbl = Eso.query_apex_quicklooks(project_id= '093.C-0144')
904
904
>>> files = Eso.retrieve_data(tbl['Product ID'])
905
905
"""
906
906
@@ -944,7 +944,7 @@ def query_apex_quicklooks(self, project_id=None, help=False,
944
944
945
945
return table
946
946
947
- def _print_query_help (self , url , cache = True ):
947
+ def _print_query_help (self , url , * , cache = True ):
948
948
"""
949
949
Download a form and print it in a quasi-human-readable way
950
950
"""
@@ -1006,7 +1006,7 @@ def _print_query_help(self, url, cache=True):
1006
1006
log .info ("\n " .join (result_string ))
1007
1007
return result_string
1008
1008
1009
- def _print_surveys_help (self , url , cache = True ):
1009
+ def _print_surveys_help (self , url , * , cache = True ):
1010
1010
"""
1011
1011
Download a form and print it in a quasi-human-readable way
1012
1012
"""
0 commit comments