Пример #1
0
 def __init__(self, file, version=(3, 0), skip_blocks=None):
     self.version = version
     self.raw_text, self.locations, self.data = b'', None, None
     check_or_make_dir(path.dirname(file))
     self._fh = open(file, 'w+b', 0)
     self.write_file(skip_blocks)
Пример #2
0
 def setUp(self):
     dir_path = path.dirname(path.realpath(__file__))
     check_or_make_dir(path.join(dir_path, 'test_data/'))
     self.test_file = path.join(dir_path, 'test_data/test.nd2')
     self.create_test_nd2()