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:
@ -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:
|
||||
|
Reference in New Issue
Block a user