From f7538c4e6073ac8d95beb1e418fb4214497c69c9 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 15 Apr 2025 09:27:42 +0200 Subject: [PATCH] fix(waveform): bug in setup async curves for plotting data from wrong scan_id --- bec_widgets/widgets/plots/waveform/waveform.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bec_widgets/widgets/plots/waveform/waveform.py b/bec_widgets/widgets/plots/waveform/waveform.py index a80e632c..6d9f7d4e 100644 --- a/bec_widgets/widgets/plots/waveform/waveform.py +++ b/bec_widgets/widgets/plots/waveform/waveform.py @@ -1172,6 +1172,7 @@ class Waveform(PlotBase): except KeyError: logger.warning(f"Curve {name} not found in plot item.") pass + QApplication.processEvents() # Process events to avoid async callbacks scheduled but executed in the wrong order self.bec_dispatcher.connect_slot( self.on_async_readback, MessageEndpoints.device_async_readback(self.scan_id, name),