Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): fix origin & target for fast home should not include other axes #13955

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,9 @@ async def _retrieve_home_position(
self, axis: Axis
) -> Tuple[OT3AxisMap[float], OT3AxisMap[float]]:
origin = await self._backend.update_position()
target_pos = {ax: pos for ax, pos in origin.items()}
target_pos.update({axis: self._backend.home_position()[axis]})
return origin, target_pos
origin_pos = {axis: origin[axis]}
target_pos = {axis: self._backend.home_position()[axis]}
return origin_pos, target_pos

@_adjust_high_throughput_z_current
async def _home_axis(self, axis: Axis) -> None:
Expand Down