@@ -354,15 +354,15 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
354
354
resp .raise_for_status ()
355
355
356
356
eb_deets = self ._request ('GET' ,
357
- 'https://data.nrao.edu /archive-service/restapi_get_full_exec_block_details' ,
357
+ f' { self . archive_url } /archive-service/restapi_get_full_exec_block_details' ,
358
358
params = {'solr_id' : solr_id },
359
359
cache = False
360
360
)
361
361
eb_deets .raise_for_status ()
362
362
assert len (self ._session .cookies ) > 0
363
363
364
364
resp1b = self ._request ('GET' ,
365
- 'https://data.nrao.edu /archive-service/restapi_spw_details_view' ,
365
+ f' { self . archive_url } /archive-service/restapi_spw_details_view' ,
366
366
params = {'exec_block_id' : solr_id .split (":" )[- 1 ]},
367
367
cache = False
368
368
)
@@ -403,7 +403,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
403
403
if instrument in ('VLA' , 'EVLA' ):
404
404
post_data ['p_applyTelescopeFlags' ] = apply_flags
405
405
casareq = self ._request ('GET' ,
406
- 'https://data.nrao.edu /archive-service/restapi_get_casa_version_list' ,
406
+ f' { self . archive_url } /archive-service/restapi_get_casa_version_list' ,
407
407
cache = False
408
408
)
409
409
casareq .raise_for_status ()
@@ -413,7 +413,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
413
413
post_data ['p_casaHome' ] = casav ['path' ]
414
414
415
415
presp = self ._request ('POST' ,
416
- 'https://data.nrao.edu /rh/submission' ,
416
+ f' { self . archive_url } /rh/submission' ,
417
417
data = post_data ,
418
418
cache = False
419
419
)
@@ -434,7 +434,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
434
434
wait_url = nextresp .url
435
435
nextresp .raise_for_status ()
436
436
437
- if 'https://data.nrao.edu /rh/requests/' not in wait_url :
437
+ if f' { self . archive_url } /rh/requests/' not in wait_url :
438
438
raise ValueError (f"Got wrong URL from post request: { wait_url } " )
439
439
440
440
# to get the right format of response, you need to specify this:
@@ -448,7 +448,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
448
448
if resp .text == 'COMPLETE' :
449
449
break
450
450
451
- return resp
451
+ return wait_url
452
452
453
453
454
454
0 commit comments