Closedown
This commit is contained in:
+3
-3
@@ -18,7 +18,7 @@ def convert_file(input_file_name, output_file_name):
|
||||
out.write(Ecrbk + s + CADC1 + s + CADC2 + s + CADC3 + s + str(field) +line_sep)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
"""
|
||||
|
||||
def convert_file(input_file_name, output_file_name, pol = None):
|
||||
print "Converting data file: " + input_file_name + " to " + output_file_name
|
||||
#print "File converted to: ",output_file_name
|
||||
@@ -39,13 +39,13 @@ def convert_file(input_file_name, output_file_name, pol = None):
|
||||
if line=="": break
|
||||
try:
|
||||
(Ecrbk, CADC1, CADC2, CADC3, CADC4, MCurr, cffrbk, IDErbk, time) = line.split(" ")
|
||||
normtey=repr( float(CADC3)/float(CADC1))
|
||||
normtey=repr( float(CADC2)/float(CADC1))
|
||||
# normdiode=repr(float(CADC3)/float(CADC2))
|
||||
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)))
|
||||
|
||||
"""
|
||||
##################### Plotting function #############################
|
||||
"""
|
||||
task = None
|
||||
|
||||
Reference in New Issue
Block a user