1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-04 16:02:51 +01:00

fix(waveform): x_data checked with is scalar instead of len()

This commit is contained in:
2025-07-15 11:02:01 +02:00
committed by Jan Wyzula
parent f083dff612
commit db7dd4f8d4

View File

@@ -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: