Merge pull request 'fix(devices): mo1_bragg add failure_value to CompareStatus to not hang forever and report error' (#32) from fix/compare-status-fail into main
CI for superxas_bec / test (push) Successful in 1m25s
CI for superxas_bec / test (push) Successful in 1m25s
Reviewed-on: #32
This commit was merged in pull request #32.
This commit is contained in:
@@ -257,7 +257,11 @@ class Mo1Bragg(PSIDeviceBase, Mo1BraggPositioner):
|
||||
logger.info(f"Device {self.name}, done sleeping")
|
||||
|
||||
# Load the scan parameters to the controller
|
||||
status = CompareStatus(self.scan_control.scan_msg, ScanControlLoadMessage.SUCCESS)
|
||||
status = CompareStatus(
|
||||
self.scan_control.scan_msg,
|
||||
ScanControlLoadMessage.SUCCESS,
|
||||
failure_value=[m for m in ScanControlLoadMessage if m.name.startswith("ERR_")],
|
||||
)
|
||||
self.cancel_on_stop(status)
|
||||
self.scan_control.scan_load.put(1)
|
||||
# Wait for params to be checked from controller
|
||||
|
||||
Reference in New Issue
Block a user