Skip to content

Commit 625f36e

Browse files
committed
fix(scan): update device name handling in scan report instructions
1 parent 8c28630 commit 625f36e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bec_server/bec_server/scan_server/scans/scan_actions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,9 @@ def add_scan_report_instruction_device_progress(self, device: str | DeviceBase):
697697
Args:
698698
device (str | DeviceBase): name of the device or DeviceBase instance to report
699699
"""
700-
device_name = self._normalize_device_name(device)
700+
# NOTE: the device name does not use the dotted name as in many other scan actions but the root
701+
# name. This is because the progress signal is scoped to an entire device.
702+
device_name = device if isinstance(device, str) else device.root.name
701703
scan_report_instruction = {"device_progress": [device_name]}
702704
self._scan.scan_info.scan_report_instructions.append(scan_report_instruction)
703705
if self._update_queue_info_callback is not None:

0 commit comments

Comments
 (0)