Script execution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user