Commit df051e0f authored by payno's avatar payno
Browse files

[hdf5scan] fix load-from-dict

parent 34c361e4
Pipeline #31467 passed with stages
in 5 minutes and 17 seconds
......@@ -302,7 +302,12 @@ class HDF5TomoScan(TomoScanBase):
assert self.DICT_PATH_KEY in data
self._entry = data[self._DICT_ENTRY_KEY]
self.master_file = self.get_master_file(self.path)
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]
else:
self.path = os.path.dirname(data[self.DICT_PATH_KEY])
return self
@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