Script execution
This commit is contained in:
@@ -50,12 +50,12 @@ wait_channel(OTF_DONE, 1, type = 'i')
|
||||
readback2 = energy.read()
|
||||
sleep(3);
|
||||
|
||||
output_path = ""/sls/X11MA/data/X11MA/beamtime_december/""
|
||||
output_path = "/sls/X11MA/data/X11MA/beamtime_december/"
|
||||
#output_path = input_path #+file_Data1/beamtime_oct2017prefix+"/" #"/sls/X11MA/Data1/public/e10989/"+file_prefix+"/"
|
||||
file_prefix = time.strftime("%Y%m%d")
|
||||
fid = get_next_fid(output_path, "me" + file_prefix)
|
||||
suffix = ("%03d" % fid)
|
||||
output_file = output_path + "me" + file_prefix + "_" + suffix
|
||||
output_file = output_path + "me" + file_prefix + "_" + suffix + "_scan_"
|
||||
print "output_file = ", output_file
|
||||
|
||||
for k in range(0,20):
|
||||
@@ -65,7 +65,7 @@ for k in range(0,20):
|
||||
|
||||
for k in range(0,len(loops)):
|
||||
#filename=open(output_file + "_" + k + ".dat","a")
|
||||
filename=open("data"+file_prefix+"_scan_"+str(k)+".txt","a")
|
||||
filename=open(output_file + str(k)+".dat","a")
|
||||
for i in range(0,len(forward)):
|
||||
print "Setting field = ", forward[i]
|
||||
caput("X11MA-XMCD:I-SETraw",forward[i])
|
||||
|
||||
Reference in New Issue
Block a user