From 5fabd4bea95bafd2352102686357cc1db80813fd Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Thu, 7 Nov 2024 16:30:24 +0100 Subject: [PATCH] fix(scan_control): DeviceLineEdit kwargs readings changed to get name of the positioner --- bec_widgets/widgets/scan_control/scan_group_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bec_widgets/widgets/scan_control/scan_group_box.py b/bec_widgets/widgets/scan_control/scan_group_box.py index fca8ea9a..a313dcc9 100644 --- a/bec_widgets/widgets/scan_control/scan_group_box.py +++ b/bec_widgets/widgets/scan_control/scan_group_box.py @@ -321,7 +321,7 @@ class ScanGroupBox(QGroupBox): for i in range(self.layout.columnCount()): widget = self.layout.itemAtPosition(1, i).widget() if isinstance(widget, DeviceLineEdit) and device_object: - value = widget.get_device() + value = widget.get_current_device().name else: value = WidgetIO.get_value(widget) kwargs[widget.arg_name] = value