Commit e8e138cf authored by payno's avatar payno
Browse files

[hdf5scan] fix scan path when loaded from dictionnary

parent 3f9248e2
...@@ -310,8 +310,13 @@ class HDF5TomoScan(TomoScanBase): ...@@ -310,8 +310,13 @@ class HDF5TomoScan(TomoScanBase):
raise ValueError('No hdf5 entry specified') raise ValueError('No hdf5 entry specified')
assert self.DICT_PATH_KEY in data assert self.DICT_PATH_KEY in data
self.path = data[self.DICT_PATH_KEY]
self._entry = data[self._DICT_ENTRY_KEY] self._entry = data[self._DICT_ENTRY_KEY]
self.master_file = self.get_master_file(data[self.DICT_PATH_KEY])
if os.path.isdir(data[self.DICT_PATH_KEY]):
self.path = data[self.DICT_PATH_KEY]
self.path = os.path.dirname(data[self.DICT_PATH_KEY])
return self return self
@property @property
Supports Markdown
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