import time import numpy as np from bec_lib.core import bec_logger from scan_server.scans import FlyScanBase, ScanArgType, ScanBase logger = bec_logger.logger class OTFScan(FlyScanBase): scan_name = "otf_scan" scan_report_hint = "table" required_kwargs = ["e1", "e2", "time"] arg_input = [] arg_bundle_size = len(arg_input) def __init__(self, *args, parameter=None, **kwargs): """Scans the energy from e1 to e2 in