From d1d9991aff87650da0adf0cc0e51d9dac835a0d1 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 15 Apr 2025 21:16:25 +0200 Subject: [PATCH] wip: add log print in setup async curves --- bec_widgets/widgets/plots/waveform/waveform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bec_widgets/widgets/plots/waveform/waveform.py b/bec_widgets/widgets/plots/waveform/waveform.py index 1433ed57..c5ef0cd8 100644 --- a/bec_widgets/widgets/plots/waveform/waveform.py +++ b/bec_widgets/widgets/plots/waveform/waveform.py @@ -1013,6 +1013,7 @@ class Waveform(PlotBase): self.auto_range_y = True self.old_scan_id = self.scan_id self.scan_id = current_scan_id + # What if there is not yet a scan item here self.scan_item = self.queue.scan_storage.find_scan_by_ID(self.scan_id) # live scan self._slice_index = None # Reset the slice index @@ -1163,6 +1164,7 @@ class Waveform(PlotBase): Args: curve(Curve): The curve to set up. """ + logger.warning(f"SETUP ASYNC CURVE {curve.name()} for scan ID {self.scan_id}") name = curve.config.signal.name self.bec_dispatcher.disconnect_slot( self.on_async_readback, MessageEndpoints.device_async_readback(self.old_scan_id, name)