fix: minor bugfixes for XASSimpleScan, missing yield and "wait" for stubs.complete
This commit is contained in:
@@ -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 time
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from bec_lib.device import DeviceBase
|
from bec_lib.device import DeviceBase
|
||||||
|
from bec_lib.logger import bec_logger
|
||||||
from bec_server.scan_server.scans import AsyncFlyScanBase
|
from bec_server.scan_server.scans import AsyncFlyScanBase
|
||||||
|
|
||||||
|
logger = bec_logger.logger
|
||||||
|
|
||||||
|
|
||||||
class XASSimpleScan(AsyncFlyScanBase):
|
class XASSimpleScan(AsyncFlyScanBase):
|
||||||
"""Class for the XAS simple scan"""
|
"""Class for the XAS simple scan"""
|
||||||
@@ -71,7 +74,7 @@ class XASSimpleScan(AsyncFlyScanBase):
|
|||||||
|
|
||||||
self._check_limits()
|
self._check_limits()
|
||||||
# Ensure parent class pre_scan actions to be called.
|
# Ensure parent class pre_scan actions to be called.
|
||||||
super().pre_scan()
|
yield from super().pre_scan()
|
||||||
|
|
||||||
def scan_report_instructions(self):
|
def scan_report_instructions(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user