From 582dbd8d41a75ca9fe8b32161be8b73ead5024be Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Wed, 9 Apr 2025 14:32:57 +0200 Subject: [PATCH] WIP curve object name passing --- bec_widgets/widgets/plots/waveform/curve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bec_widgets/widgets/plots/waveform/curve.py b/bec_widgets/widgets/plots/waveform/curve.py index 3cf322d4..746537f1 100644 --- a/bec_widgets/widgets/plots/waveform/curve.py +++ b/bec_widgets/widgets/plots/waveform/curve.py @@ -92,7 +92,8 @@ class Curve(BECConnector, pg.PlotDataItem): self.config = config self.parent_item = parent_item self.parent_id = self.parent_item.gui_id - super().__init__(name=name, config=config, gui_id=gui_id, **kwargs) + object_name = name.replace("-", "_") if name else None + super().__init__(name=name, object_name=object_name, config=config, gui_id=gui_id, **kwargs) self.apply_config() self.dap_params = None