0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(waveform): error where scan history is empty

This commit is contained in:
2025-03-25 11:32:14 +01:00
parent 9fb9a1cfd2
commit 288ea4dbbd

View File

@ -1023,7 +1023,7 @@ class Waveform(PlotBase):
)
x_data = self._get_x_data(device_name, device_entry)
if x_data is not None:
if np.isscalar(x_data) and len(x_data) == 1:
if isinstance(x_data, int) or (np.isscalar(x_data) and np.size(x_data) == 1):
self.clear_data()
return
if device_data is not None and x_data is not None: