Commit b0fb9e99 authored by Laurent Claustre's avatar Laurent Claustre Committed by bliss administrator

fix some bugs in the test_saving.py scripts

parent 109c5007
Pipeline #37344 passed with stages
in 52 minutes and 22 seconds
......@@ -63,8 +63,8 @@ class TestSaving:
'overwrite': self.ct_saving.Overwrite}
@Core.DEB_MEMBER_FUNCT
def __del__(self):
del self.ct_control
del self.cam_hw
del self.ct_control
del self.cam_hw
@Core.DEB_MEMBER_FUNCT
def start(self, exp_time, nb_frames, directory, prefix, fmt, overwrite, framesperfile, threads, repeats, log_stat):
......@@ -117,8 +117,8 @@ class TestSaving:
@Core.DEB_FUNCT
def main(argv):
parser = argparse.ArgumentParser(description='A Lima test program for saving format')
parser.add_argument('-v', '--verbose', help='verbose mode, up to vvv', required=False, action='count')
parser = argparse.ArgumentParser(description='A Lima test program for saving format')
parser.add_argument('-v', '--verbose', help='verbose mode, up to vvv', required=False, action='count', default=0)
parser.add_argument('-e', '--exposure', type=float, help='exposure time in sec.', required=False,default=0.1)
parser.add_argument('-n', '--nbframes', type=int, help='number of frames.', required=False, default=1)
if sys.platform == 'win32': format_list = ['all','cbf','edf','edfgz','hdf5','hdf5gz','hdf5bs','raw']
......@@ -146,9 +146,9 @@ def main(argv):
Core.DebParams.setTypeFlags(Core.DebParams.AllFlags)
Core.DebParams.setModuleFlags(Core.DebParams.AllFlags)
exp_time = 0.1
exp_time = 0.1
test_saving = TestSaving(args.camera)
test_saving = TestSaving(args.camera)
if args.format == 'all':
format_list=test_saving.format_list
......@@ -169,7 +169,7 @@ def main(argv):
args.threads,
repeat,
args.log_stat)
except Core.Exception, e:
except Core.Exception as e:
raise RuntimeError
test_saving.waitAcq()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment