Skip to content

Commit

Permalink
nozzle map api version gating for transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Jul 19, 2024
1 parent eb10890 commit 308f1b4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions api/src/opentrons/protocols/advanced_control/transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
from opentrons.protocol_api import InstrumentContext
from opentrons.protocols.execution.dev_types import Dictable

_PARTIAL_TIP_SUPPORT_ADDED = APIVersion(2, 18)
"""The version after which partial tip support and nozzle maps were made available."""


class MixStrategy(enum.Enum):
BOTH = enum.auto()
Expand Down Expand Up @@ -410,10 +413,14 @@ def __init__(
# then avoid iterating through its Wells.
# ii. if using single channel pipettes, flatten a multi-dimensional
# list of Wells into a 1 dimensional list of Wells
pipette_configuration_type = NozzleConfigurationType.FULL
if self._api_version >= _PARTIAL_TIP_SUPPORT_ADDED:
pipette_configuration_type = (
self._instr._core.get_nozzle_map().configuration
)
if (
self._instr.channels > 1
and self._instr._core.get_nozzle_map().configuration
== NozzleConfigurationType.FULL
and pipette_configuration_type == NozzleConfigurationType.FULL
):
sources, dests = self._multichannel_transfer(sources, dests)
else:
Expand Down

0 comments on commit 308f1b4

Please sign in to comment.