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