From 45d043213b5a06869e90dfb5f02a142b1c3ceadd Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Wed, 3 Jun 2026 13:12:31 +0200 Subject: [PATCH] fix: update scan info with num_monitored_readouts --- superxas_bec/devices/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superxas_bec/devices/utils/utils.py b/superxas_bec/devices/utils/utils.py index 6cff1eb..a2acf0a 100644 --- a/superxas_bec/devices/utils/utils.py +++ b/superxas_bec/devices/utils/utils.py @@ -13,6 +13,7 @@ def fetch_scan_info(scan_info: ScanInfo) -> ScanServerScanInfo: info = deepcopy(scan_info.msg.info) if isinstance(info.get("positions"), list): info["positions"] = np.array(info["positions"]) + info["num_monitored_readouts"] = scan_info.msg.num_monitored_readouts try: msg = ScanServerScanInfo.model_validate(info) except ValidationError: @@ -23,4 +24,3 @@ def fetch_scan_info(scan_info: ScanInfo) -> ScanServerScanInfo: msg = ScanServerScanInfo.model_validate(info) return msg -