Skip to content

Commit

Permalink
Apply scale to scan arguments (#308)
Browse files Browse the repository at this point in the history
This resolves #303.
  • Loading branch information
kangz12345 authored Oct 30, 2024
2 parents 71ab67b + 4d8042f commit 0b03c5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions iquip/apps/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def scanArguments(self) -> Dict[str, Any]:
"""Overridden."""
return {
"ty": "NoScan",
"value": self.valueSpinBox.value(),
"value": self.valueSpinBox.value() * self.scale,
"repetitions": self.repetitionsSpinBox.value()
}

Expand Down Expand Up @@ -569,8 +569,8 @@ def scanArguments(self) -> Dict[str, Any]:
"""Overridden."""
return {
"ty": "RangeScan",
"start": self.startSpinBox.value(),
"stop": self.stopSpinBox.value(),
"start": self.startSpinBox.value() * self.scale,
"stop": self.stopSpinBox.value() * self.scale,
"npoints": self.npointsSpinBox.value(),
"randomize": self.randomizeCheckBox.isChecked(),
"seed": None
Expand Down Expand Up @@ -627,9 +627,9 @@ def scanArguments(self) -> Dict[str, Any]:
"""Overridden."""
return {
"ty": "CenterScan",
"center": self.centerSpinBox.value(),
"step": self.stepSpinBox.value(),
"span": self.spanSpinBox.value(),
"center": self.centerSpinBox.value() * self.scale,
"step": self.stepSpinBox.value() * self.scale,
"span": self.spanSpinBox.value() * self.scale,
"randomize": self.randomizeCheckBox.isChecked(),
"seed": None
}
Expand Down

0 comments on commit 0b03c5f

Please sign in to comment.