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

wip: test avoid registering 2 callbacks

This commit is contained in:
2025-04-15 20:59:58 +02:00
parent 0e27bf50c2
commit 9d04b6e9d9

View File

@ -1543,7 +1543,11 @@ class Waveform(PlotBase):
Categorise the device curves into sync and async based on the readout priority.
"""
if self.scan_item is None:
self.update_with_scan_history(-1)
# If scan_item is None, than update_with_scan_history will call `_categorise_device_curves` via
# `_emit_signal_update`. All of this happens while old_scan_id is still set. So we actually register
# a callback twice for the same scan_id. This is a problem since data will be duplicated.
# self.update_with_scan_history(-1)
if self.scan_item is None:
logger.info("No scan executed so far; skipping device curves categorisation.")
return "none"