mirror of https://github.com/m-labs/artiq.git
entries: rename setPrecision to setSigFigs
This commit is contained in:
parent
a2d62e6006
commit
8f4c8387f9
|
@ -121,7 +121,7 @@ class NumberEntryFloat(ScientificSpinBox):
|
||||||
procdesc = argument["desc"]
|
procdesc = argument["desc"]
|
||||||
scale = procdesc["scale"]
|
scale = procdesc["scale"]
|
||||||
self.setDecimals(procdesc["precision"])
|
self.setDecimals(procdesc["precision"])
|
||||||
self.setPrecision()
|
self.setSigFigs()
|
||||||
self.setSingleStep(procdesc["step"]/scale)
|
self.setSingleStep(procdesc["step"]/scale)
|
||||||
self.setRelativeStep()
|
self.setRelativeStep()
|
||||||
if procdesc["min"] is not None:
|
if procdesc["min"] is not None:
|
||||||
|
@ -160,7 +160,7 @@ class _NoScan(LayoutWidget):
|
||||||
self.value = ScientificSpinBox()
|
self.value = ScientificSpinBox()
|
||||||
disable_scroll_wheel(self.value)
|
disable_scroll_wheel(self.value)
|
||||||
self.value.setDecimals(procdesc["precision"])
|
self.value.setDecimals(procdesc["precision"])
|
||||||
self.value.setPrecision()
|
self.value.setSigFigs()
|
||||||
if procdesc["global_min"] is not None:
|
if procdesc["global_min"] is not None:
|
||||||
self.value.setMinimum(procdesc["global_min"]/scale)
|
self.value.setMinimum(procdesc["global_min"]/scale)
|
||||||
else:
|
else:
|
||||||
|
@ -244,10 +244,10 @@ class _RangeScan(LayoutWidget):
|
||||||
self.addWidget(randomize, 3, 1)
|
self.addWidget(randomize, 3, 1)
|
||||||
|
|
||||||
apply_properties(start)
|
apply_properties(start)
|
||||||
start.setPrecision()
|
start.setSigFigs()
|
||||||
start.setRelativeStep()
|
start.setRelativeStep()
|
||||||
apply_properties(stop)
|
apply_properties(stop)
|
||||||
stop.setPrecision()
|
stop.setSigFigs()
|
||||||
stop.setRelativeStep()
|
stop.setRelativeStep()
|
||||||
apply_properties(scanner)
|
apply_properties(scanner)
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ class _CenterScan(LayoutWidget):
|
||||||
center = ScientificSpinBox()
|
center = ScientificSpinBox()
|
||||||
disable_scroll_wheel(center)
|
disable_scroll_wheel(center)
|
||||||
apply_properties(center)
|
apply_properties(center)
|
||||||
center.setPrecision()
|
center.setSigFigs()
|
||||||
center.setRelativeStep()
|
center.setRelativeStep()
|
||||||
center.setValue(state["center"]/scale)
|
center.setValue(state["center"]/scale)
|
||||||
self.addWidget(center, 0, 1)
|
self.addWidget(center, 0, 1)
|
||||||
|
@ -319,7 +319,7 @@ class _CenterScan(LayoutWidget):
|
||||||
span = ScientificSpinBox()
|
span = ScientificSpinBox()
|
||||||
disable_scroll_wheel(span)
|
disable_scroll_wheel(span)
|
||||||
apply_properties(span)
|
apply_properties(span)
|
||||||
span.setPrecision()
|
span.setSigFigs()
|
||||||
span.setRelativeStep()
|
span.setRelativeStep()
|
||||||
span.setMinimum(0)
|
span.setMinimum(0)
|
||||||
span.setValue(state["span"]/scale)
|
span.setValue(state["span"]/scale)
|
||||||
|
@ -329,7 +329,7 @@ class _CenterScan(LayoutWidget):
|
||||||
step = ScientificSpinBox()
|
step = ScientificSpinBox()
|
||||||
disable_scroll_wheel(step)
|
disable_scroll_wheel(step)
|
||||||
apply_properties(step)
|
apply_properties(step)
|
||||||
step.setPrecision()
|
step.setSigFigs()
|
||||||
step.setRelativeStep()
|
step.setRelativeStep()
|
||||||
step.setMinimum(0)
|
step.setMinimum(0)
|
||||||
step.setValue(state["step"]/scale)
|
step.setValue(state["step"]/scale)
|
||||||
|
|
Loading…
Reference in New Issue