From 6c707acd949382c5dee77db3b0972e269fbb8a56 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Thu, 14 Dec 2017 14:19:23 +0100 Subject: [PATCH] Script execution --- script/Electric_field_loop3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/Electric_field_loop3.py b/script/Electric_field_loop3.py index 0265143..f3f54e1 100644 --- a/script/Electric_field_loop3.py +++ b/script/Electric_field_loop3.py @@ -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])