From 985a4228decbbe1e42f0fbe920dcbad3cf07a90c Mon Sep 17 00:00:00 2001 From: gac-x01da Date: Wed, 18 Sep 2024 08:40:06 +0200 Subject: [PATCH] fix: minor bugfixes for XASSimpleScan, missing yield and "wait" for stubs.complete --- debye_bec/scans/mono_bragg_scans.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debye_bec/scans/mono_bragg_scans.py b/debye_bec/scans/mono_bragg_scans.py index 0bbcad0..7df6c47 100644 --- a/debye_bec/scans/mono_bragg_scans.py +++ b/debye_bec/scans/mono_bragg_scans.py @@ -1,11 +1,14 @@ -""" This module contains the scan classes for the mono bragg motor of the Debye beamline.""" +"""This module contains the scan classes for the mono bragg motor of the Debye beamline.""" import time import numpy as np from bec_lib.device import DeviceBase +from bec_lib.logger import bec_logger from bec_server.scan_server.scans import AsyncFlyScanBase +logger = bec_logger.logger + class XASSimpleScan(AsyncFlyScanBase): """Class for the XAS simple scan""" @@ -71,7 +74,7 @@ class XASSimpleScan(AsyncFlyScanBase): self._check_limits() # Ensure parent class pre_scan actions to be called. - super().pre_scan() + yield from super().pre_scan() def scan_report_instructions(self): """