Skip to content

Commit f61d124

Browse files
committed
small change
1 parent 5b747e2 commit f61d124

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/dodal/devices/scintillator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
class InOut(StrictEnum):
1111
"""Moves scintillator in and out of the beam."""
12-
13-
OUT = "Out" #Out of beam
14-
IN = "In" #In to beam
12+
13+
OUT = "Out" # Out of beam
14+
IN = "In" # In to beam
1515
UNKNOWN = "Unknown"
1616

1717

@@ -67,7 +67,7 @@ def _get_selected_position(self, y: float, z: float) -> InOut:
6767
)
6868
):
6969
return InOut.OUT
70-
70+
7171
elif all(
7272
isclose(axis_pos, axis_in_beam, abs_tol=axis_tolerance)
7373
for axis_pos, axis_in_beam, axis_tolerance in zip(
@@ -78,7 +78,7 @@ def _get_selected_position(self, y: float, z: float) -> InOut:
7878
)
7979
):
8080
return InOut.IN
81-
81+
8282
else:
8383
return InOut.UNKNOWN
8484

@@ -104,7 +104,7 @@ async def _set_selected_position(self, position: InOut) -> None:
104104
!= ApertureValue.PARKED
105105
):
106106
raise ValueError(
107-
"Cannot move scintillator out if aperture/scatterguard is not parked"
107+
"Cannot move scintillator in if aperture/scatterguard is not parked"
108108
)
109109
await self.z_mm.set(self._scintillator_in_yz_mm[1])
110110
await self.y_mm.set(self._scintillator_in_yz_mm[0])

0 commit comments

Comments
 (0)