Skip to content

Commit

Permalink
move labware
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Feb 4, 2025
1 parent b8cbdde commit 6b1e828
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,3 @@ class LabwarePositionResultMixin(LabwareHandlingResultMixin):
None,
description="An ID referencing the labware offset that will apply to this labware in this location.",
)


class LabwareMotionResultMixin(BaseModel):
"""A result for commands that move a labware entity."""

labwareId: str = Field(..., description="The id of the labware.")
newLocationSequence: LabwareLocationSequence | None = Field(
None,
description="the full location down to the deck of the labware after this command.",
)
originalLocationSequence: LabwareLocationSequence | None = Field(
None,
description="The full location down to the deck of the labware before this command.",
)
offsetId: str | None = Field(
None,
description="An ID referencing the labware offset that will apply to this labware in the position this command leaves it in.",
)
9 changes: 9 additions & 0 deletions api/src/opentrons/protocol_engine/commands/move_labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
LabwareMovementStrategy,
LabwareOffsetVector,
LabwareMovementOffsetData,
LabwareLocationSequence,
)
from ..errors import (
LabwareMovementNotAllowedError,
Expand Down Expand Up @@ -100,6 +101,14 @@ class MoveLabwareResult(BaseModel):
" so the default of (0, 0, 0) will be used."
),
)
newLocationSequence: LabwareLocationSequence | None = Field(
None,
description="the full location down to the deck of the labware after this command.",
)
originalLocationSequence: LabwareLocationSequence | None = Field(
None,
description="The full location down to the deck of the labware before this command.",
)


class GripperMovementError(ErrorOccurrence):
Expand Down

0 comments on commit 6b1e828

Please sign in to comment.