@@ -830,7 +830,7 @@ def __extract_file(output_file_full_path, output_dir, files):
830830 files .append (output_file_full_path )
831831 return files
832832
833- def get_observation_products (self , * , id = None , release = "sedm" , product_type = None , product_subtype = "STK" ,
833+ def get_observation_products (self , * , id = None , schema = "sedm" , product_type = None , product_subtype = "STK" ,
834834 filter = "VIS" , dsr_part1 = None , dsr_part2 = None , dsr_part3 = None , output_file = None ,
835835 verbose = False ):
836836 """
@@ -841,7 +841,7 @@ def get_observation_products(self, *, id=None, release="sedm", product_type=None
841841 ----------
842842 id : str, mandatory
843843 observation identifier (observation id for observations, mosaic id for mosaics)
844- release : str, optional
844+ schema : str, optional
845845 release name. Default value is 'sedm'.
846846 product_type : str, mandatory, default None
847847 list only products of the given type.
@@ -878,7 +878,7 @@ def get_observation_products(self, *, id=None, release="sedm", product_type=None
878878 raise ValueError (f"Invalid product type { product_type } . Valid values: { conf .PRODUCT_TYPES } " )
879879
880880 params_dict = {'TYPE' : product_subtype , 'RETRIEVAL_ACCESS' : 'DIRECT' , 'TAPCLIENT' : 'ASTROQUERY' ,
881- 'RELEASE' : release }
881+ 'RELEASE' : schema }
882882
883883 if product_type == 'observation' :
884884 params_dict ['FILTER' ] = filter
@@ -1308,7 +1308,7 @@ def __get_data_set_release_by_env(self, dsr_1_value=None, dsr_2_value=None, dsr_
13081308
13091309 return query
13101310
1311- def get_product (self , * , file_name = None , product_id = None , release = 'sedm' , output_file = None , dsr_part1 = None ,
1311+ def get_product (self , * , file_name = None , product_id = None , schema = 'sedm' , output_file = None , dsr_part1 = None ,
13121312 dsr_part2 = None , dsr_part3 = None , verbose = False ):
13131313 """
13141314 Downloads a product given its file name or product id
@@ -1320,7 +1320,7 @@ def get_product(self, *, file_name=None, product_id=None, release='sedm', output
13201320 is mandatory
13211321 product_id : str, optional, default None
13221322 product id. More than one can be specified between comma. Either file_name or product_id is mandatory
1323- release : str, optional, default 'sedm'
1323+ schema : str, optional, default 'sedm'
13241324 the data release name in which the product should be searched
13251325 output_file : str, optional
13261326 output file, use zip extension when downloading multiple files
@@ -1345,7 +1345,7 @@ def get_product(self, *, file_name=None, product_id=None, release='sedm', output
13451345 if file_name is None and product_id is None :
13461346 raise ValueError ("'file_name' and 'product_id' are both None" )
13471347
1348- params_dict = {'TAPCLIENT' : 'ASTROQUERY' , 'RELEASE' : release }
1348+ params_dict = {'TAPCLIENT' : 'ASTROQUERY' , 'RELEASE' : schema }
13491349
13501350 if file_name is not None :
13511351 params_dict ['FILE_NAME' ] = file_name
0 commit comments