@@ -199,7 +199,7 @@ def _validate_settings(self, settings):
199
199
'values for {}' .format (scale_type , required_keys ))
200
200
201
201
def monitor_submission (self , submission_id , * ,
202
- solve_timeout = TIMEOUT , verbose = True , return_job_id = False ):
202
+ solve_timeout = TIMEOUT , verbose = True , return_submission_id = False ):
203
203
"""
204
204
Monitor the submission for completion.
205
205
@@ -213,8 +213,8 @@ def monitor_submission(self, submission_id, *,
213
213
a solution.
214
214
verbose : bool, optional
215
215
Whether to print out information about the solving.
216
- return_job_id : bool, optional
217
- Whether to return the Submission ID number (called Job ID on Astrometry.net) .
216
+ return_submission_id : bool, optional
217
+ Whether to return the Submission ID number.
218
218
219
219
Returns
220
220
-------
@@ -224,7 +224,7 @@ def monitor_submission(self, submission_id, *,
224
224
succeeds or fails. If the solve succeeds the header with
225
225
the WCS solution generated by astrometry.net is returned. A tuple
226
226
containing WCS solution and Submission ID is return if the
227
- return_job_id parameter is set True. If the solve
227
+ return_submission_id parameter is set True. If the solve
228
228
fails then an empty dictionary is returned. See below for the outcome
229
229
if the solve times out.
230
230
@@ -272,15 +272,15 @@ def monitor_submission(self, submission_id, *,
272
272
else :
273
273
# Try to future-proof a little bit
274
274
raise RuntimeError ('Unrecognized status {}' .format (status ))
275
- if return_job_id is False :
275
+ if return_submission_id is False :
276
276
return wcs
277
277
else :
278
278
return (wcs , submission_id )
279
279
280
280
def solve_from_source_list (self , x , y , image_width , image_height , * ,
281
281
solve_timeout = TIMEOUT ,
282
282
verbose = True ,
283
- return_job_id = False ,
283
+ return_submission_id = False ,
284
284
** settings
285
285
):
286
286
"""
@@ -302,8 +302,8 @@ def solve_from_source_list(self, x, y, image_width, image_height, *,
302
302
a solution.
303
303
verbose : bool, optional
304
304
Whether to print out information about the solving.
305
- return_job_id : bool, optional
306
- Whether to return the Submission ID number (called Job ID on Astrometry.net) .
305
+ return_submission_id : bool, optional
306
+ Whether to return the Submission ID number.
307
307
308
308
For a list of the remaining settings, use the method
309
309
`~AstrometryNetClass.show_allowed_settings`.
@@ -329,15 +329,15 @@ def solve_from_source_list(self, x, y, image_width, image_height, *,
329
329
return self .monitor_submission (submission_id ,
330
330
solve_timeout = solve_timeout ,
331
331
verbose = verbose ,
332
- return_job_id = return_job_id )
332
+ return_submission_id = return_submission_id )
333
333
334
334
def solve_from_image (self , image_file_path , * , force_image_upload = False ,
335
335
ra_key = None , dec_key = None ,
336
336
ra_dec_units = None ,
337
337
fwhm = 3 , detect_threshold = 5 ,
338
338
solve_timeout = TIMEOUT ,
339
339
verbose = True ,
340
- return_job_id = False ,
340
+ return_submission_id = False ,
341
341
** settings ):
342
342
"""
343
343
Plate solve from an image, either by uploading the image to
@@ -381,8 +381,8 @@ def solve_from_image(self, image_file_path, *, force_image_upload=False,
381
381
verbose : bool, optional
382
382
Whether to print out information about the solving.
383
383
384
- return_job_id : bool, optional
385
- Whether to return the Submission ID number (called Job ID on Astrometry.net) .
384
+ return_submission_id : bool, optional
385
+ Whether to return the Submission ID number.
386
386
387
387
For a list of the remaining settings, use the method
388
388
`~AstrometryNetClass.show_allowed_settings`.
@@ -447,6 +447,7 @@ def solve_from_image(self, image_file_path, *, force_image_upload=False,
447
447
ccd .header ['naxis2' ],
448
448
solve_timeout = solve_timeout ,
449
449
verbose = verbose ,
450
+ return_submission_id = return_submission_id ,
450
451
** settings )
451
452
if response .status_code != 200 :
452
453
raise RuntimeError ('Post of job failed' )
@@ -455,7 +456,7 @@ def solve_from_image(self, image_file_path, *, force_image_upload=False,
455
456
return self .monitor_submission (submission_id ,
456
457
solve_timeout = solve_timeout ,
457
458
verbose = verbose ,
458
- return_job_id = return_job_id )
459
+ return_submission_id = return_submission_id )
459
460
460
461
461
462
# the default tool for users to interact with is an instance of the Class
0 commit comments