@@ -152,16 +152,9 @@ def _validate_product(self, product):
152
152
-------
153
153
InvalidQueryError
154
154
If the product is not "SPOC".
155
-
156
- Returns
157
- -------
158
- str
159
- The validated product type, converted to uppercase.
160
155
"""
161
- product = product .upper ()
162
- if product != "SPOC" :
156
+ if product .upper () != "SPOC" :
163
157
raise InvalidQueryError ("Input product must be SPOC." )
164
- return product
165
158
166
159
@deprecated_renamed_argument ('product' , None , since = '0.4.11' , message = 'Tesscut no longer supports operations on '
167
160
'TESS Image Calibrator (TICA) products. '
@@ -219,11 +212,11 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, product='SPOC', objec
219
212
response : `~astropy.table.Table`
220
213
Sector/camera/chip information for given coordinates/objectname/moving_target.
221
214
"""
222
- product = self ._validate_product (product )
215
+ self ._validate_product (product )
223
216
self ._validate_target_input (coordinates , objectname , moving_target )
224
217
225
218
if moving_target :
226
- params = {"product" : "SPOC" , " obj_id" : objectname }
219
+ params = {"obj_id" : objectname }
227
220
if mt_type : # Add optional parameter if present
228
221
params ["obj_type" ] = mt_type
229
222
service = "mt_sector"
@@ -236,8 +229,7 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, product='SPOC', objec
236
229
radius = Angle (radius , u .deg )
237
230
params = {"ra" : coordinates .ra .deg ,
238
231
"dec" : coordinates .dec .deg ,
239
- "radius" : radius .deg ,
240
- "product" : "SPOC" }
232
+ "radius" : radius .deg }
241
233
service = "sector"
242
234
243
235
response = self ._service_api_connection .service_request_async (service , params )
@@ -320,10 +312,9 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
320
312
-------
321
313
response : `~astropy.table.Table`
322
314
"""
323
- product = self ._validate_product (product )
315
+ self ._validate_product (product )
324
316
self ._validate_target_input (coordinates , objectname , moving_target )
325
317
params = _parse_cutout_size (size )
326
- params ["product" ] = "SPOC"
327
318
328
319
if sector :
329
320
params ["sector" ] = sector
@@ -431,14 +422,10 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
431
422
-------
432
423
response : A list of `~astropy.io.fits.HDUList` objects.
433
424
"""
434
- product = product .upper ()
435
- if product != "SPOC" :
436
- raise InvalidQueryError ("Input product must be SPOC." )
437
- product = self ._validate_product (product )
425
+ self ._validate_product (product )
438
426
self ._validate_target_input (coordinates , objectname , moving_target )
439
427
440
428
params = _parse_cutout_size (size )
441
- params ["product" ] = product
442
429
if sector :
443
430
params ["sector" ] = sector
444
431
0 commit comments