mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(waveform): bug in setup async curves for plotting data from wrong scan_id
This commit is contained in:
@ -1172,6 +1172,7 @@ class Waveform(PlotBase):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
logger.warning(f"Curve {name} not found in plot item.")
|
logger.warning(f"Curve {name} not found in plot item.")
|
||||||
pass
|
pass
|
||||||
|
QApplication.processEvents() # Process events to avoid async callbacks scheduled but executed in the wrong order
|
||||||
self.bec_dispatcher.connect_slot(
|
self.bec_dispatcher.connect_slot(
|
||||||
self.on_async_readback,
|
self.on_async_readback,
|
||||||
MessageEndpoints.device_async_readback(self.scan_id, name),
|
MessageEndpoints.device_async_readback(self.scan_id, name),
|
||||||
|
Reference in New Issue
Block a user