Skip to content

Commit 1d0cb8c

Browse files
Rename function
1 parent 8e50c57 commit 1d0cb8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dodal/devices/beamlines/i21/toolpoint_motion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def check_motor_limits(
114114
),
115115
)
116116

117-
async def _get_real_motor_positions(
117+
async def _get_xyz_motor_positions(
118118
self,
119119
) -> XYZMotorPositions:
120120
x, y, z, tilt, azimuth = await asyncio.gather(
@@ -127,12 +127,12 @@ async def _get_real_motor_positions(
127127
return XYZMotorPositions(x=x, y=y, z=z, tilt_deg=tilt, azimuth_deg=azimuth)
128128

129129
async def _read_all_uvw(self) -> UVWMotorPositions:
130-
xyz_pos = await self._get_real_motor_positions()
130+
xyz_pos = await self._get_xyz_motor_positions()
131131
uvw_pos = xyz_to_uvw(xyz_pos, zero=self._zero)
132132
return uvw_pos
133133

134134
async def _write_all_uvw(self, uvw_pos: UVWMotorPositions) -> None:
135-
xyz_start = await self._get_real_motor_positions()
135+
xyz_start = await self._get_xyz_motor_positions()
136136
xyz_end = uvw_to_xyz(uvw_pos, self._zero)
137137

138138
await self.check_motor_limits(xyz_start, xyz_end)

0 commit comments

Comments
 (0)