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): use consistent CriticalPoints when moving to maintenance position #12878

Merged
merged 4 commits into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pydantic import BaseModel, Field

from opentrons.types import MountType, Point, Mount
from opentrons.hardware_control.types import OT3Axis, CriticalPoint
from opentrons.hardware_control.types import OT3Axis
from opentrons.protocol_engine.commands.command import (
AbstractCommandImpl,
BaseCommand,
Expand Down Expand Up @@ -97,7 +97,6 @@ async def execute(
await ot3_api.move_to(
mount=Mount.LEFT,
abs_position=movement,
critical_point=CriticalPoint.MOUNT,
)

if params.maintenancePosition == MaintenancePosition.ATTACH_INSTRUMENT:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from opentrons.protocol_engine.state import StateView
from opentrons.types import MountType, Mount, Point
from opentrons.hardware_control.types import OT3Axis, CriticalPoint
from opentrons.hardware_control.types import OT3Axis

if TYPE_CHECKING:
from opentrons.hardware_control.ot3api import OT3API
Expand Down Expand Up @@ -71,7 +71,6 @@ async def test_calibration_move_to_location_implementation(
await ot3_hardware_api.move_to(
mount=Mount.LEFT,
abs_position=Point(x=1, y=2, z=300),
critical_point=CriticalPoint.MOUNT,
),
times=1,
)
Expand All @@ -80,7 +79,6 @@ async def test_calibration_move_to_location_implementation(
await ot3_hardware_api.move_to(
mount=Mount.LEFT,
abs_position=Point(x=0, y=110, z=300),
critical_point=CriticalPoint.MOUNT,
),
times=1,
)
Expand Down