From b5baa4dce1e1d79eaa06dd7454a80989cd7a8a6a Mon Sep 17 00:00:00 2001 From: lhdamiani Date: Mon, 16 May 2022 17:34:46 +0200 Subject: [PATCH] sleep removal and proper source naming --- eiger/xbl-daq-28/start_requests.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/eiger/xbl-daq-28/start_requests.py b/eiger/xbl-daq-28/start_requests.py index 0b872e4..0f8dc7c 100644 --- a/eiger/xbl-daq-28/start_requests.py +++ b/eiger/xbl-daq-28/start_requests.py @@ -19,21 +19,14 @@ def prepare_det(dr): print("Stoping the detector...") stop_data = {'cmd': "STOP"} r = requests.post(url=urljoin(URL,DET), headers=headers, json=stop_data) - time.sleep(0.1) print("Configuring the detector...") data_config = {"det_name":"eiger","config":{"frames":5000, "triggers":1, "exptime":0.0005, "period": 0.001, "timing":"auto", "tengiga":1, "dr":dr}} r = requests.post(url=urljoin(URL,DET), headers=headers, json=data_config) - time.sleep(0.5) print("Starting the detector...") start_data = {'cmd':"START"} r = requests.post(url = urljoin(URL,DET), headers=headers, json=start_data) - time.sleep(0.5) - - - def main(argv): - # details of request n_images = 5 n_acquisitions = 5 @@ -44,13 +37,9 @@ def main(argv): print(f'Performing { j } aquisitions (bit depth { dr })...') for i in range(0,n_acquisitions): output_file ='/home/dbe/git/sf_daq_buffer/eiger/xbl-daq-28/output_folder%s_%s_req%s_dr%s.h5' % (j, datetime.now().strftime("%H%M%S"), i, dr) - data = {'sources':'BEC.EG01V01', 'n_images':n_images, 'output_file':output_file, 'user_id': 503} + data = {'sources':'cSAXS.EG01V01', 'n_images':n_images, 'output_file':output_file, 'user_id': 503} r = requests.post(url = urljoin(URL,j), json=data, headers=headers) print("RESPONSE FROM REQUEST: ", r.text) - - - - if __name__ == "__main__": main(sys.argv[1:])