Skip to content

Commit

Permalink
Added setDecimals(3) to tof_properties.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeigh committed Dec 9, 2024
1 parent 5216e1c commit fc11216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mantidimaging/gui/widgets/spectrum_widgets/tof_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def setupUi(self):
self.flightPathSpinBox.setSuffix(" m")
self.flightPathSpinBox.setMinimum(0)
self.flightPathSpinBox.setMaximum(1e10)
self.flightPathSpinBox.setDecimals(3)
self.flightPathSpinBox.setObjectName("flightPathSpinBox")
layout.addWidget(self.flightPathSpinBox, 0, 1)

Expand All @@ -58,6 +59,7 @@ def setupUi(self):
self.timeDelaySpinBox = QtWidgets.QDoubleSpinBox(self)
self.timeDelaySpinBox.setSuffix(" \u03BCs")
self.timeDelaySpinBox.setMaximum(1e10)
self.timeDelaySpinBox.setDecimals(3)
self.timeDelaySpinBox.setObjectName("timeDelaySpinBox")
layout.addWidget(self.timeDelaySpinBox, 1, 1)

Expand All @@ -71,7 +73,7 @@ def flight_path(self) -> float:
return self.flightPathSpinBox.value()

@flight_path.setter
def flight_path(self, value: float):
def flight_path(self, value: float) -> None:
self.flightPathSpinBox.setValue(value)

@property
Expand Down

0 comments on commit fc11216

Please sign in to comment.