From b7f72f8e444c6e78f2187358d20bad100760af15 Mon Sep 17 00:00:00 2001 From: gac-x01da Date: Tue, 18 Mar 2025 17:52:23 +0100 Subject: [PATCH] wip support BEC core scans --- debye_bec/devices/mo1_bragg/mo1_bragg.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/debye_bec/devices/mo1_bragg/mo1_bragg.py b/debye_bec/devices/mo1_bragg/mo1_bragg.py index 1c743af..178a8ba 100644 --- a/debye_bec/devices/mo1_bragg/mo1_bragg.py +++ b/debye_bec/devices/mo1_bragg/mo1_bragg.py @@ -119,8 +119,6 @@ class Mo1Bragg(PSIDeviceBase, Mo1BraggPositioner): Information about the upcoming scan can be accessed from the scan_info (self.scan_info.msg) object. """ - if not self.scan_info.msg.scan_type == "fly": - return self._check_scan_msg(ScanControlLoadMessage.PENDING) scan_name = self.scan_info.msg.scan_name @@ -198,9 +196,7 @@ class Mo1Bragg(PSIDeviceBase, Mo1BraggPositioner): mode=ScanControlMode.ADVANCED, scan_duration=self.scan_parameter.scan_duration ) else: - raise Mo1BraggError( - f"Scan mode {scan_name} not implemented for scan_type={self.scan_info.msg.scan_type} on device {self.name}" - ) + return # Load the scan parameters to the controller self.scan_control.scan_load.put(1) # Wait for params to be checked from controller