refactor(timepix): add explicit RuntimeError for failed file writer of the backend.
CI for superxas_bec / test (push) Failing after 1m10s
CI for superxas_bec / test (push) Failing after 1m10s
This commit is contained in:
@@ -776,7 +776,14 @@ class Timepix(PSIDeviceBase, TimePixControl):
|
||||
status_writer = None
|
||||
if self.hdf.enable.get() == "Enable":
|
||||
st2 = CompareStatus(self.hdf.write_file, ACQUIRESTATUS.DONE)
|
||||
st3 = ExceptionStatus(self.hdf.write_status, 0, operation="!=")
|
||||
st3 = ExceptionStatus(
|
||||
self.hdf.write_status,
|
||||
0,
|
||||
operation="!=",
|
||||
exception=RuntimeError(
|
||||
"HDF5 write failed, please check with support if the IOC has sufficient permissions to write to disk."
|
||||
),
|
||||
)
|
||||
status_written_images = CompareStatus(self.hdf.num_captured, self._n_images)
|
||||
status_writer = st1 & st2 & status_written_images & st3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user