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