From 12a44fad3c88e4886a924521c7e99aa051357374 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 17 Jan 2024 16:46:15 +0800 Subject: [PATCH] comm_analyzer: change 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