From 86a8d2d87a20d0f650deccb191de70f85b4b62fc Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 12 Jul 2024 17:38:40 +0800 Subject: [PATCH] moninj: add underscore to dac channel labels --- artiq/dashboard/moninj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 0f8bfa780..24f1f7636 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -348,7 +348,7 @@ class _DACWidget(QtWidgets.QFrame): grid.setHorizontalSpacing(0) grid.setVerticalSpacing(0) self.setLayout(grid) - label = QtWidgets.QLabel("{} ch{}".format(title, channel)) + label = QtWidgets.QLabel("{}_ch{}".format(title, channel)) label.setAlignment(QtCore.Qt.AlignCenter) grid.addWidget(label, 1, 1) @@ -373,7 +373,7 @@ class _DACWidget(QtWidgets.QFrame): return (self.title, self.channel) def to_model_path(self): - return "dac/{} ch{}".format(self.title, self.channel) + return "dac/{}_ch{}".format(self.title, self.channel) _WidgetDesc = namedtuple("_WidgetDesc", "uid comment cls arguments")