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