Skip to content

Commit 6b1e828

Browse files
committed
move labware
1 parent b8cbdde commit 6b1e828

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

api/src/opentrons/protocol_engine/commands/labware_handling_common.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,3 @@ class LabwarePositionResultMixin(LabwareHandlingResultMixin):
2222
None,
2323
description="An ID referencing the labware offset that will apply to this labware in this location.",
2424
)
25-
26-
27-
class LabwareMotionResultMixin(BaseModel):
28-
"""A result for commands that move a labware entity."""
29-
30-
labwareId: str = Field(..., description="The id of the labware.")
31-
newLocationSequence: LabwareLocationSequence | None = Field(
32-
None,
33-
description="the full location down to the deck of the labware after this command.",
34-
)
35-
originalLocationSequence: LabwareLocationSequence | None = Field(
36-
None,
37-
description="The full location down to the deck of the labware before this command.",
38-
)
39-
offsetId: str | None = Field(
40-
None,
41-
description="An ID referencing the labware offset that will apply to this labware in the position this command leaves it in.",
42-
)

api/src/opentrons/protocol_engine/commands/move_labware.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
LabwareMovementStrategy,
2727
LabwareOffsetVector,
2828
LabwareMovementOffsetData,
29+
LabwareLocationSequence,
2930
)
3031
from ..errors import (
3132
LabwareMovementNotAllowedError,
@@ -100,6 +101,14 @@ class MoveLabwareResult(BaseModel):
100101
" so the default of (0, 0, 0) will be used."
101102
),
102103
)
104+
newLocationSequence: LabwareLocationSequence | None = Field(
105+
None,
106+
description="the full location down to the deck of the labware after this command.",
107+
)
108+
originalLocationSequence: LabwareLocationSequence | None = Field(
109+
None,
110+
description="The full location down to the deck of the labware before this command.",
111+
)
103112

104113

105114
class GripperMovementError(ErrorOccurrence):

0 commit comments

Comments
 (0)