Skip to content

Commit 308f1b4

Browse files
committed
nozzle map api version gating for transfers
1 parent eb10890 commit 308f1b4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

api/src/opentrons/protocols/advanced_control/transfers.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
from opentrons.protocol_api import InstrumentContext
2424
from opentrons.protocols.execution.dev_types import Dictable
2525

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

2730
class MixStrategy(enum.Enum):
2831
BOTH = enum.auto()
@@ -410,10 +413,14 @@ def __init__(
410413
# then avoid iterating through its Wells.
411414
# ii. if using single channel pipettes, flatten a multi-dimensional
412415
# list of Wells into a 1 dimensional list of Wells
416+
pipette_configuration_type = NozzleConfigurationType.FULL
417+
if self._api_version >= _PARTIAL_TIP_SUPPORT_ADDED:
418+
pipette_configuration_type = (
419+
self._instr._core.get_nozzle_map().configuration
420+
)
413421
if (
414422
self._instr.channels > 1
415-
and self._instr._core.get_nozzle_map().configuration
416-
== NozzleConfigurationType.FULL
423+
and pipette_configuration_type == NozzleConfigurationType.FULL
417424
):
418425
sources, dests = self._multichannel_transfer(sources, dests)
419426
else:

0 commit comments

Comments
 (0)