fix: update info storage with num_monitored_readouts #79

Merged
hitz_s merged 1 commits from fix/scan_info_readouts into main 2026-06-03 13:15:21 +02:00
+1
View File
@@ -13,6 +13,7 @@ def fetch_scan_info(scan_info: ScanInfo) -> ScanServerScanInfo:
info = scan_info.msg.info
if isinstance(info["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: # This means we have an old scan_info object.