From 84ed0b44967464dab10f8022684b873c58c101d2 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Tue, 4 Sep 2018 17:50:23 +0200 Subject: [PATCH] Script execution --- script/Energy_MagScan.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/Energy_MagScan.py b/script/Energy_MagScan.py index cbeca89..f822afb 100644 --- a/script/Energy_MagScan.py +++ b/script/Energy_MagScan.py @@ -1,6 +1,6 @@ file_prefix = time.strftime("%Y%m%d") # CHANGE THE PATH IN THE OTH -input_path = " /sls/X11MA/data/X11MA/slsbl/x11ma/e17208/Data1/" + file_prefix +"/" +input_path = " /sls/X11MA/data/X11MA/slsbl/x11ma/e17208/Data1/20180904/" output_path = input_path @@ -98,7 +98,7 @@ polswitch = 1 fid = get_next_fid(input_path, "o" + file_prefix) - +print "File ID:" , fid ############################################################################### #Prepare scan ############################################################################### @@ -166,6 +166,7 @@ for scan_no in range(number_of_scans): caput(OTF_TIME, TIME) caput(OTF_FTS,file_prefix) caput(OTF_FID,fid) + print "Setting FID = " , fid time.sleep(2.0) caput(OTF_ESET, E1) wait_channel(OTF_DONE, 1, type = 'i') @@ -189,10 +190,10 @@ for scan_no in range(number_of_scans): #Convert file output_file = output_path + "os" + file_prefix + "_" + suffix + ".dat" - print("Converting data file: " + output_file); + #print("Converting data file: " + output_file); #convert_file(input_file, output_file) #plot_file(output_file, file_prefix+"_" + suffix) #"Scan " + str(scan_no+1)) - #print "Finished scan " + str(scan_no+1) + " out of " + str(number_of_scans) + "with polarisation: " + pol_str + print "Finished scan " + str(scan_no+1) + " out of " + str(number_of_scans) + "with polarisation: " + pol_str if scan_no % 2 == 0: # switch on steps 2N if RUNTYPE in ["+/-", "LH/LV"]: