From 87a63ae998b25a71f700b2cd8dbf4b941a95a1ca Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Fri, 19 Dec 2025 15:04:33 +0100 Subject: [PATCH] feat: add device progress scan --- bec_testing_plugin/scans/__init__.py | 3 ++- bec_testing_plugin/scans/device_progress_scan.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 bec_testing_plugin/scans/device_progress_scan.py diff --git a/bec_testing_plugin/scans/__init__.py b/bec_testing_plugin/scans/__init__.py index 4af42b8..b034a4c 100644 --- a/bec_testing_plugin/scans/__init__.py +++ b/bec_testing_plugin/scans/__init__.py @@ -1,3 +1,4 @@ from .custom_scan import CustomTestingScan +from .device_progress_scan import DeviceProgressScan -__all__ = ["CustomTestingScan"] +__all__ = ["CustomTestingScan", "DeviceProgressScan"] diff --git a/bec_testing_plugin/scans/device_progress_scan.py b/bec_testing_plugin/scans/device_progress_scan.py new file mode 100644 index 0000000..9e04c19 --- /dev/null +++ b/bec_testing_plugin/scans/device_progress_scan.py @@ -0,0 +1,10 @@ +from bec_server.scan_server.scans import Scan + + +class DeviceProgressScan(Scan): + """A scan that simulates device progress updates.""" + + scan_name = "device_progress_grid_scan" + + def scan_report_instructions(self): + yield from self.stubs.scan_report_instruction({"device_progress": ["waveform"]})