From db7dd4f8d4b1210e65c852f6193fc8cf0f4809a5 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Tue, 15 Jul 2025 11:02:01 +0200 Subject: [PATCH] fix(waveform): x_data checked with is scalar instead of len() --- bec_widgets/widgets/plots/waveform/waveform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bec_widgets/widgets/plots/waveform/waveform.py b/bec_widgets/widgets/plots/waveform/waveform.py index a569d966..32c1edb1 100644 --- a/bec_widgets/widgets/plots/waveform/waveform.py +++ b/bec_widgets/widgets/plots/waveform/waveform.py @@ -1482,7 +1482,7 @@ class Waveform(PlotBase): device_data = entry_obj.read()["value"] if entry_obj else None x_data = self._get_x_data(device_name, device_entry) if x_data is not None: - if len(x_data) == 1: + if np.isscalar(x_data): self.clear_data() return if device_data is not None and x_data is not None: