Skip to content

Commit

Permalink
Delete accidentally duplicated logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Sep 30, 2024
1 parent 540d882 commit 3431ac3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions api/src/opentrons/protocol_engine/commands/move_labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,6 @@ async def execute(self, params: MoveLabwareParams) -> _ExecuteReturn: # noqa: C
labware_id=params.labwareId, new_location=available_new_location
)

# We might be moving the labware that contains the current well out from
# under the pipette. Clear the current location to reflect the fact that the
# pipette is no longer over any labware. This is necessary for safe path
# planning in case the next movement goes to the same labware (now in a new
# place).
pipette_location = self._state_view.pipettes.get_current_location()
if (
isinstance(pipette_location, CurrentWell)
and pipette_location.labware_id == params.labwareId
):
state_update.clear_all_pipette_locations()

if params.strategy == LabwareMovementStrategy.USING_GRIPPER:
if self._state_view.config.robot_type == "OT-2 Standard":
raise NotSupportedOnRobotType(
Expand Down

0 comments on commit 3431ac3

Please sign in to comment.