From b06b6259f182cdeb02d5f9b1a2d94da56ed419e2 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Mon, 3 Sep 2018 11:57:34 +0200 Subject: [PATCH] Script execution --- script/EnergyScanTransmission.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/script/EnergyScanTransmission.py b/script/EnergyScanTransmission.py index 171ff23..b87e13c 100644 --- a/script/EnergyScanTransmission.py +++ b/script/EnergyScanTransmission.py @@ -5,31 +5,6 @@ import time ############################PGM+ID1+ID2################################################### -if str(SET_OFFSETS) == "1": - print "Setting offsets" - #print file_prefix - if RUNTYPE in ["+/-", "+" , "-"]: - caput(OTF_MODE1,1) # circ + in ID1 - caput(OTF_MODE2,2) # circ - in ID2 - elif RUNTYPE in ["LH/LV", "LH", "LV"]: - caput(OTF_MODE1,0) - caput(OTF_MODE2,0) - wait_channel(OTF_DONE, 1, type = 'i') - caput(OTF_ALPHA1, 0.0) # LH in ID1 - caput(OTF_ALPHA2, 90.0) # LV in ID2 - wait_channel(OTF_DONE, 1, type = 'i') - else: - raise Exception("Invalid run type: " + RUNTYPE) - - caput(OTF_OFF1,OFFSET1) - caput(OTF_OFF2,OFFSET2-40) #detune ID2 - wait_channel(OTF_DONE, 1, type = 'i') - print "Offsets are set" - import sys - sys.exit(0) -else: - print "Running full script" - file_prefix = time.strftime("%Y%m%d") input_path = "/sls/X11MA/data/X11MA/Data1/public/scans/1809_Armin/" output_path = input_path #+file_Data1/beamtime_oct2017prefix+"/" #"/sls/X11MA/Data1/public/e10989/"+file_prefix+"/"