@@ -365,7 +365,7 @@ def query_async(self, payload, *, public=True, science=True,
365
365
return legacy_result
366
366
return result
367
367
368
- def query_sia (self , pos = None , band = None , time = None , pol = None ,
368
+ def query_sia (self , * , pos = None , band = None , time = None , pol = None ,
369
369
field_of_view = None , spatial_resolution = None ,
370
370
spectral_resolving_power = None , exptime = None ,
371
371
timeres = None , publisher_did = None ,
@@ -480,7 +480,7 @@ def _get_dataarchive_url(self):
480
480
"on github." )
481
481
return self .dataarchive_url
482
482
483
- def get_data_info (self , uids , expand_tarfiles = False ,
483
+ def get_data_info (self , uids , * , expand_tarfiles = False ,
484
484
with_auxiliary = True , with_rawdata = True ):
485
485
486
486
"""
@@ -618,7 +618,8 @@ def _HEADER_data_size(self, files):
618
618
619
619
return data_sizes , totalsize .to (u .GB )
620
620
621
- def download_files (self , files , savedir = None , cache = True ,
621
+
622
+ def download_files (self , files , * , savedir = None , cache = True ,
622
623
continuation = True , skip_unauthorized = True ,
623
624
verify_only = False ):
624
625
"""
@@ -754,7 +755,7 @@ def _parse_result(self, response, verbose=False):
754
755
755
756
return response
756
757
757
- def retrieve_data_from_uid (self , uids , cache = True ):
758
+ def retrieve_data_from_uid (self , uids , * , cache = True ):
758
759
"""
759
760
Stage & Download ALMA data. Will print out the expected file size
760
761
before attempting the download.
@@ -787,7 +788,7 @@ def retrieve_data_from_uid(self, uids, cache=True):
787
788
downloaded_files = self .download_files (file_urls )
788
789
return downloaded_files
789
790
790
- def _get_auth_info (self , username , store_password = False ,
791
+ def _get_auth_info (self , username , * , store_password = False ,
791
792
reenter_password = False ):
792
793
"""
793
794
Get the auth info (user, password) for use in another function
@@ -965,7 +966,7 @@ def cycle0_table(self):
965
966
self ._cycle0_table .rename_column ('col2' , 'uid' )
966
967
return self ._cycle0_table
967
968
968
- def get_files_from_tarballs (self , downloaded_files , regex = r'.*\.fits$' ,
969
+ def get_files_from_tarballs (self , downloaded_files , * , regex = r'.*\.fits$' ,
969
970
path = 'cache_path' , verbose = True ):
970
971
"""
971
972
Given a list of successfully downloaded tarballs, extract files
@@ -1015,7 +1016,7 @@ def get_files_from_tarballs(self, downloaded_files, regex=r'.*\.fits$',
1015
1016
1016
1017
return filelist
1017
1018
1018
- def download_and_extract_files (self , urls , delete = True , regex = r'.*\.fits$' ,
1019
+ def download_and_extract_files (self , urls , * , delete = True , regex = r'.*\.fits$' ,
1019
1020
include_asdm = False , path = 'cache_path' ,
1020
1021
verbose = True ):
1021
1022
"""
@@ -1175,7 +1176,7 @@ def _json_summary_to_table(self, data, base_url):
1175
1176
tbl = Table ([Column (name = k , data = v ) for k , v in columns .items ()])
1176
1177
return tbl
1177
1178
1178
- def get_project_metadata (self , projectid , cache = True ):
1179
+ def get_project_metadata (self , projectid , * , cache = True ):
1179
1180
"""
1180
1181
Get the metadata - specifically, the project abstract - for a given project ID.
1181
1182
"""
0 commit comments