Script execution

This commit is contained in:
gac-x11ma
2019-05-15 13:12:50 +02:00
parent d8f040d988
commit 9d33fbfff1

View File

@@ -179,7 +179,7 @@ def convert_file(input_file_name, output_file_name, pol = None):
normtey=repr( float(CADC2)/float(CADC1))
# normdiode=repr(float(CADC3)/float(CADC2))
field=caget(MAG)
out.write(Ecrbk + s + CADC1 + s + CADC2 + s + CADC3 + s + normtey + s + str(pol) + s + field + line_sep)
out.write(Ecrbk + s + CADC1 + s + CADC2 + s + CADC3 + s + normtey + s + str(pol) + line_sep)
except:
traceback.print_exc()
os.rename(input_file_name, get_context().setup.expandPath("{data}/OTF/" + ntpath.basename(input_file_name)))