From 27c69b5ec28d75e3ef93212ace5962654576b601 Mon Sep 17 00:00:00 2001 From: Leon Riesebos Date: Mon, 19 Oct 2020 22:05:44 -0400 Subject: [PATCH] fixed value scaling issue for the center scan gui widget Signed-off-by: Leon Riesebos --- artiq/gui/entries.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/gui/entries.py b/artiq/gui/entries.py index bfb4f405d..7e5e80916 100644 --- a/artiq/gui/entries.py +++ b/artiq/gui/entries.py @@ -301,7 +301,7 @@ class _CenterScan(LayoutWidget): apply_properties(center) center.setPrecision() center.setRelativeStep() - center.setValue(state["center"]) + center.setValue(state["center"]/scale) self.addWidget(center, 0, 1) self.addWidget(QtWidgets.QLabel("Center:"), 0, 0) @@ -311,7 +311,7 @@ class _CenterScan(LayoutWidget): span.setPrecision() span.setRelativeStep() span.setMinimum(0) - span.setValue(state["span"]) + span.setValue(state["span"]/scale) self.addWidget(span, 1, 1) self.addWidget(QtWidgets.QLabel("Span:"), 1, 0) @@ -321,7 +321,7 @@ class _CenterScan(LayoutWidget): step.setPrecision() step.setRelativeStep() step.setMinimum(0) - step.setValue(state["step"]) + step.setValue(state["step"]/scale) self.addWidget(step, 2, 1) self.addWidget(QtWidgets.QLabel("Step:"), 2, 0)