Closedown

This commit is contained in:
x07maop
2016-03-30 14:35:59 +02:00
parent 80c9d5c4f5
commit e3c7d37d37

View File

@@ -104,14 +104,13 @@ def wait_device(dev, value, timeout=-1):
print "Waiting " + dev.getName() + " = " + str(value)
dev.waitValue(value,timeout)
print "Done waiting"
def convert_file(input_file_name, output_file_name, mode):
def convert_file(input_file_name, output_file_name, pol = None):
print "Converting data file: " + input_file_name + " to " + output_file_name
sep = "\t"
line_sep = "\n"
pol = str(pol_angle.read() if (MODE == "LINEAR") else pol_mode.readback.read())
if pol is None:
pol = str(pol_angle.read() if (MODE == "LINEAR") else pol_mode.readback.read())
with open(input_file_name) as inp:
lines = inp.readlines()
with open(output_file_name, "wb") as out: