forked from M-Labs/artiq
1
0
Fork 0

Merge pull request #1538 from lriesebos/release-5

fixed value scaling issue for the center scan gui widget
This commit is contained in:
Robert Jördens 2020-11-10 18:38:21 +01:00 committed by GitHub
commit 68582b8dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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)