mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
wip debug async plotting
This commit is contained in:
@ -1205,6 +1205,7 @@ class Waveform(PlotBase):
|
|||||||
plot_mode = self.x_axis_mode["name"]
|
plot_mode = self.x_axis_mode["name"]
|
||||||
for curve in self._async_curves:
|
for curve in self._async_curves:
|
||||||
x_data = None # Reset x_data
|
x_data = None # Reset x_data
|
||||||
|
y_data = None
|
||||||
# Get the curve data
|
# Get the curve data
|
||||||
async_data = msg["signals"].get(curve.config.signal.entry, None)
|
async_data = msg["signals"].get(curve.config.signal.entry, None)
|
||||||
if async_data is None:
|
if async_data is None:
|
||||||
@ -1223,8 +1224,14 @@ class Waveform(PlotBase):
|
|||||||
data_plot_y = data_plot_y[-1, :]
|
data_plot_y = data_plot_y[-1, :]
|
||||||
else:
|
else:
|
||||||
x_data, y_data = curve.get_data()
|
x_data, y_data = curve.get_data()
|
||||||
|
logger.warning(
|
||||||
|
f"Async data for curve {curve.name()}, shape: ({x_data.shape}, {y_data.shape}) (x,y)"
|
||||||
|
)
|
||||||
if y_data is not None:
|
if y_data is not None:
|
||||||
data_plot_y = np.hstack((y_data, data_plot_y))
|
data_plot_y = np.hstack((y_data, data_plot_y))
|
||||||
|
logger.warning(
|
||||||
|
f"Async data for curve {curve.name()}, shape: {data_plot_y.shape} (y)"
|
||||||
|
)
|
||||||
# Add slice
|
# Add slice
|
||||||
if instruction == "add_slice":
|
if instruction == "add_slice":
|
||||||
current_slice_id = metadata.get("async_update", {}).get("index")
|
current_slice_id = metadata.get("async_update", {}).get("index")
|
||||||
|
Reference in New Issue
Block a user