mirror of https://github.com/m-labs/artiq.git
fixed value scaling issue for the center scan gui widget
Signed-off-by: Leon Riesebos <leon.riesebos@duke.edu>
This commit is contained in:
parent
e8ef0ce470
commit
27c69b5ec2
|
@ -301,7 +301,7 @@ class _CenterScan(LayoutWidget):
|
||||||
apply_properties(center)
|
apply_properties(center)
|
||||||
center.setPrecision()
|
center.setPrecision()
|
||||||
center.setRelativeStep()
|
center.setRelativeStep()
|
||||||
center.setValue(state["center"])
|
center.setValue(state["center"]/scale)
|
||||||
self.addWidget(center, 0, 1)
|
self.addWidget(center, 0, 1)
|
||||||
self.addWidget(QtWidgets.QLabel("Center:"), 0, 0)
|
self.addWidget(QtWidgets.QLabel("Center:"), 0, 0)
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ class _CenterScan(LayoutWidget):
|
||||||
span.setPrecision()
|
span.setPrecision()
|
||||||
span.setRelativeStep()
|
span.setRelativeStep()
|
||||||
span.setMinimum(0)
|
span.setMinimum(0)
|
||||||
span.setValue(state["span"])
|
span.setValue(state["span"]/scale)
|
||||||
self.addWidget(span, 1, 1)
|
self.addWidget(span, 1, 1)
|
||||||
self.addWidget(QtWidgets.QLabel("Span:"), 1, 0)
|
self.addWidget(QtWidgets.QLabel("Span:"), 1, 0)
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ class _CenterScan(LayoutWidget):
|
||||||
step.setPrecision()
|
step.setPrecision()
|
||||||
step.setRelativeStep()
|
step.setRelativeStep()
|
||||||
step.setMinimum(0)
|
step.setMinimum(0)
|
||||||
step.setValue(state["step"])
|
step.setValue(state["step"]/scale)
|
||||||
self.addWidget(step, 2, 1)
|
self.addWidget(step, 2, 1)
|
||||||
self.addWidget(QtWidgets.QLabel("Step:"), 2, 0)
|
self.addWidget(QtWidgets.QLabel("Step:"), 2, 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue