From da479e1e4f8bd0c06f72aa4c30a2188ddb7b423f Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Wed, 15 May 2019 13:17:01 +0200 Subject: [PATCH] Script execution --- script/local.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/local.py b/script/local.py index b536579..0662c71 100644 --- a/script/local.py +++ b/script/local.py @@ -168,8 +168,8 @@ def convert_file(input_file_name, output_file_name, pol = None): lines = inp.readlines() with open(output_file_name, "wb") as out: (db, st) = ("java.lang.Double", "java.lang.String") - out.write("#Energy" + sep + "CADC1" + sep + "CADC2" + sep + "CADC3" + sep + "NORMtey" + "Pol" + sep + "X" + sep + "Y" + sep + "Z" + sep + "THT" + sep + "Mag" + line_sep) - out.write("#"+ db + sep + db + sep + db + sep + db + sep + db + sep + db + sep + db + sep + db + sep + db + sep + db +line_sep) + out.write("#Energy" + sep + "CADC1" + sep + "CADC2" + sep + "CADC3" + sep + "NORMtey" + "Pol" + line_sep) + out.write("#"+ db + sep + db + sep + db + sep + db + sep + db + sep + db + line_sep) s = sep for line in lines[1:]: line = line.strip() @@ -178,7 +178,7 @@ def convert_file(input_file_name, output_file_name, pol = None): (Ecrbk, CADC1, CADC2, CADC3, CADC4, MCurr, cffrbk, IDErbk, time) = line.split(" ") normtey=repr( float(CADC2)/float(CADC1)) # normdiode=repr(float(CADC3)/float(CADC2)) - field=caget(MAG) + #field=caget(MAG) out.write(Ecrbk + s + CADC1 + s + CADC2 + s + CADC3 + s + normtey + s + str(pol) + line_sep) except: traceback.print_exc()