@@ -102,8 +102,7 @@ def download_product(self, observation_id, *, calibration_level=None,
102
102
params ["CALIBRATION_LEVEL" ] = calibration_level
103
103
url += "&CALIBRATION_LEVEL=" + calibration_level
104
104
105
- if "product_type" in kwargs :
106
- product_type = kwargs ["product_type" ]
105
+ if product_type :
107
106
self .__validate_product_type (product_type )
108
107
params ["RETRIEVAL_TYPE" ] = product_type
109
108
filename = self ._get_product_filename (product_type , filename )
@@ -219,18 +218,18 @@ def get_postcard(self, observation_id, calibration_level="RAW",
219
218
220
219
shutil .move (response , filename )
221
220
222
- def cone_search (self , coordinates , radius = 0.0 , filename = None ,
223
- output_format = 'votable' , async_job = False ,
224
- cache = True , verbose = False ):
221
+ def cone_search (self , coordinates , radius , filename = None ,
222
+ output_format = 'votable' , cache = True ,
223
+ async_job = False , verbose = False ):
225
224
"""
226
225
To execute a cone search defined by a coordinate and a radius
227
226
228
227
Parameters
229
228
----------
229
+ radius : float
230
+ radius in arcmin of the cone_search
230
231
coordinates : astropy.coordinate, mandatory
231
232
coordinates of the center in the cone search
232
- radius : float, default 0
233
- radius in arcmin of the cone_search
234
233
filename : str, default None
235
234
Path and name of the file to store the results.
236
235
If the filename is defined, the file will be
@@ -285,8 +284,8 @@ def cone_search(self, coordinates, radius=0.0, filename=None,
285
284
verbose = verbose )
286
285
return table
287
286
288
- def cone_search_criteria (self , target = None , coordinates = None ,
289
- radius = 0.0 ,
287
+ def cone_search_criteria (self , radius , target = None ,
288
+ coordinates = None ,
290
289
calibration_level = None ,
291
290
data_product_type = None ,
292
291
intent = None ,
@@ -308,12 +307,12 @@ def cone_search_criteria(self, target=None, coordinates=None,
308
307
309
308
Parameters
310
309
----------
310
+ radius : float
311
+ radius in arcmin of the cone_search
311
312
target : str, mandatory if no coordinates is provided
312
313
name of the target, that will act as center in the cone search
313
314
coordinates : astropy.coordinate, mandatory if no target is provided
314
315
coordinates of the center in the cone search
315
- radius : float, default 0
316
- radius in arcmin of the cone_search
317
316
calibration_level : str or int, optional
318
317
The identifier of the data reduction/processing applied to the
319
318
data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0)
0 commit comments