Skip to content

Commit eca564a

Browse files
sanni-tddcc4
andauthored
feat(api): implement the liquid transfer function (#17179)
Closes AUTH-866 # Overview Final PR of the 3-PR series. Implements `InstrumentCore.transfer_liquid()`. The `transfer_liquid()` method does the following: 1. Loads the relevant liquid class record into protocol engine, gets the liquid class ID back. This will be used in command annotations in the future 2. Breaks down the total transfer volume into piecewise transfers, if necessary. 3. Does auto-tip handling, unless the user has specified to 'never' use a new tip. 4. Calls `aspirate_liquid_class()` and `dispense_liquid_class()` for every source-> destination transfer. This PR also updates the tiprack 'names' to URIs in the liquid class definition in shared data for 'water' only. We will have a separate PR for updating rest of the definitions. ## Risk assessment Low. Doesn't change existing API --------- Co-authored-by: David Chau <[email protected]>
1 parent 630b1b2 commit eca564a

File tree

18 files changed

+992
-239
lines changed

18 files changed

+992
-239
lines changed

api/src/opentrons/protocol_api/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
WellCore = AbstractWellCore
2222
LabwareCore = AbstractLabware[WellCore]
23-
InstrumentCore = AbstractInstrument[WellCore]
23+
InstrumentCore = AbstractInstrument[WellCore, LabwareCore]
2424
ModuleCore = AbstractModuleCore
2525
TemperatureModuleCore = AbstractTemperatureModuleCore
2626
MagneticModuleCore = AbstractMagneticModuleCore

0 commit comments

Comments
 (0)