Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sanni-t committed Dec 18, 2023
1 parent ca62a89 commit a7c9f64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/opentrons/protocol_api/core/engine/deck_conflict.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def _check_deck_conflict_for_96_channel(

destination_slot_num = _deck_slot_to_int(DeckSlotLocation(slotName=labware_slot))
adjacent_slot_num = None
# TODO (spp, 2023-12-18): change this eventually to "column 1"/"column 12"
# via the column mappings in the pipette geometry definitions.
if primary_nozzle == "A12":
adjacent_slot_num = get_west_slot(destination_slot_num)
elif primary_nozzle == "A1":
Expand Down Expand Up @@ -358,6 +360,8 @@ def _check_deck_conflict_for_8_channel(
labware_slot = engine_state.geometry.get_ancestor_slot_name(labware_id)
destination_slot = _deck_slot_to_int(DeckSlotLocation(slotName=labware_slot))
adjacent_slot_num = None
# TODO (spp, 2023-12-18): change this eventually to use nozzles from mappings in
# the pipette geometry definitions.
if primary_nozzle == "H1":
adjacent_slot_num = get_north_slot(destination_slot)
elif primary_nozzle == "A1":
Expand Down Expand Up @@ -399,6 +403,8 @@ def _is_within_pipette_extents(
primary_nozzle = engine_state.pipettes.get_primary_nozzle(pipette_id)
if robot_type == "OT-3 Standard":
if pipette_channels == 96 and nozzle_config == NozzleConfigurationType.COLUMN:
# TODO (spp, 2023-12-18): change this eventually to use column mappings in
# the pipette geometry definitions.
if primary_nozzle == "A12":
return (
A12_column_front_left_bound.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from opentrons.protocol_api.core.engine.deck_conflict import (
PartialTipMovementNotAllowedError,
)
from opentrons.types import Point


@pytest.mark.ot3_only
Expand Down Expand Up @@ -140,6 +141,13 @@ def test_deck_conflicts_for_96_ch_a1_column_configuration() -> None:
):
instrument.aspirate(25, badly_placed_plate.wells_by_name()["A1"])

with pytest.raises(
PartialTipMovementNotAllowedError, match="outside of robot bounds"
):
instrument.aspirate(
25, well_placed_plate.wells_by_name()["A12"].center().move(Point(70, 0, 0))
)

# No error cuz no taller labware on the right
instrument.aspirate(10, my_tuberack.wells_by_name()["A1"])

Expand Down

0 comments on commit a7c9f64

Please sign in to comment.