refactor(timepix): add explicit RuntimeError for failed file writer of the backend.
CI for superxas_bec / test (push) Failing after 1m10s

This commit is contained in:
2026-05-26 13:24:35 +02:00
parent 793034ae19
commit c21cc57f35
+8 -1
View File
@@ -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