Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bec_widgets/widgets/plots/waveform/waveform.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import json
from collections import defaultdict
from typing import TYPE_CHECKING, Literal
Comment on lines 3 to 5

import numpy as np
Expand Down Expand Up @@ -2307,13 +2308,19 @@ def _categorise_device_curves(self) -> str:

readout_priority_async = self._ensure_str_list(readout_priority.get("async", []))
readout_priority_sync = self._ensure_str_list(readout_priority.get("monitored", []))
async_signals = self.client.device_manager.get_bec_signals(
["AsyncSignal", "AsyncMultiSignal", "DynamicSignal"]
)
async_signal_objs = defaultdict(list)
for device, _, entry_data in async_signals:
async_signal_objs[device].append(entry_data.get("obj_name"))
Comment on lines +2311 to +2316

# Iterate over all curves
for curve in self.curves:
if curve.config.source != "device":
continue
dev_name = curve.config.signal.device
if dev_name in readout_priority_async:
if dev_name in readout_priority_async or dev_name in async_signal_objs:
self._async_curves.append(curve)
if hasattr(self.scan_item, "live_data"):
self._setup_async_curve(curve)
Expand Down
Loading