From 1e45d6e1106b22c833dc046ea2d0567b54e4f60d Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 17 Jan 2024 16:57:32 +0800 Subject: [PATCH] comm_analyzer: changed usage of logs field --- artiq/coredevice/comm_analyzer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artiq/coredevice/comm_analyzer.py b/artiq/coredevice/comm_analyzer.py index e912890ce..8b6d7c526 100644 --- a/artiq/coredevice/comm_analyzer.py +++ b/artiq/coredevice/comm_analyzer.py @@ -260,9 +260,8 @@ class WaveformManager: def get_channel(self, name, width, ty): if ty == WaveformType.LOG: - data = self.trace["logs"][self.current_scope + name] = list() - else: - data = self.trace["data"][self.current_scope + name] = list() + self.trace["logs"][self.current_scope + name] = (width, ty) + data = self.trace["data"][self.current_scope + name] = list() channel = WaveformChannel(data, self.current_time) self.channels.append(channel) return channel