From 9ea11ea6b6ffdf26fe85956bf72d8cf783e88d2a Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Tue, 4 Sep 2018 19:27:00 +0200 Subject: [PATCH] Script execution --- script/Energy_MagScan.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/script/Energy_MagScan.py b/script/Energy_MagScan.py index 74cc973..bf32a3b 100644 --- a/script/Energy_MagScan.py +++ b/script/Energy_MagScan.py @@ -6,12 +6,13 @@ input_path = "/sls/X11MA/data/X11MA/slsbl/x11ma/e17208/Data1/20180904/" output_path = input_path #Parameters +""" ROUNDS = 1 E1 = 625 E2 = 680 TIME = 4 - -PLOT_TYPE =1 +""" +PLOT_TYPE = 1 ID1=1 ID2=1 OFFSET1 = -2.0 #eV @@ -154,8 +155,8 @@ open_vg12() time.sleep(0.5) open_vg13() -#for scan_no in range(1): -for scan_no in range(number_of_scans): +for scan_no in range(2): +#for scan_no in range(number_of_scans): suffix = ("%03d" % fid) input_file = input_path + "o" + file_prefix + "_" + suffix + ".dat" # Log.append(scan_no+1) @@ -193,7 +194,7 @@ for scan_no in range(number_of_scans): print("Converting data file: " + output_file); convert_file(input_file, output_file) - plot_file(output_file, file_prefix+"_" + suffix) #"Scan " + str(scan_no+1)) + plot_file(output_file, file_prefix+"_" + suffix) #"comment to supress plot 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