fix: minor bugfixes for XASSimpleScan, missing yield and "wait" for stubs.complete

This commit is contained in:
gac-x01da
2024-09-18 08:40:06 +02:00
committed by wakonig_k
parent a55f8bf705
commit 985a4228de

View File

@@ -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):
"""