Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): change liquid_probe to respect min well height #15488

Merged
merged 12 commits into from
Jun 26, 2024
Prev Previous commit
Next Next commit
trying to get generic tests to pass
  • Loading branch information
aaron-kulkarni committed Jun 26, 2024
commit bbb820ba9bb3465968988578654edc623801e5ee
2 changes: 1 addition & 1 deletion api/src/opentrons/hardware_control/dev_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class PipetteDict(InstrumentDict):
supported_tips: Dict[PipetteTipType, SupportedTipsDefinition]
pipette_bounding_box_offsets: PipetteBoundingBoxOffsetDefinition
current_nozzle_map: NozzleMap
lld_settings: Dict[str, Dict[str, float]]
lld_settings: Optional[Dict[str, Dict[str, float]]]


class PipetteStateDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def get_attached_instrument(self, mount: MountType) -> PipetteDict:
"default_dispense_flow_rates",
"back_compat_names",
"supported_tips",
"lld_settings"
]

instr_dict = instr.as_dict()
Expand Down Expand Up @@ -258,6 +259,7 @@ def get_attached_instrument(self, mount: MountType) -> PipetteDict:
result[
"pipette_bounding_box_offsets"
] = instr.config.pipette_bounding_box_offsets
result["lld_settings"] = instr.config.lld_settings
return cast(PipetteDict, result)

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def get_attached_instrument(self, mount: OT3Mount) -> PipetteDict:
"default_dispense_flow_rates",
"back_compat_names",
"supported_tips",
"lld_settings"
]

instr_dict = instr.as_dict()
Expand Down Expand Up @@ -279,6 +280,7 @@ def get_attached_instrument(self, mount: OT3Mount) -> PipetteDict:
result[
"pipette_bounding_box_offsets"
] = instr.config.pipette_bounding_box_offsets
result["lld_settings"] = instr.config.lld_settings
return cast(PipetteDict, result)

@property
Expand Down
14 changes: 14 additions & 0 deletions shared-data/js/__tests__/pipettes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ describe('pipette data accessors', () => {
backLeftCorner: [-8, -22, -259.15],
frontRightCorner: [-8, -22, -259.15],
},
lldSettings: {
t50: {
minHeight: 0.5,
minVolume: 0
},
t200: {
minHeight: 0.5,
minVolume: 0
},
t1000: {
minHeight: 0.5,
minVolume: 0
}
}
} as PipetteV2Specs
expect(getPipetteSpecsV2('p1000_single_flex')).toStrictEqual(
mockP1000Specs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [-8.0, -61.0, -259.15],
"G1": [-8.0, -70.0, -259.15],
"H1": [-8.0, -79.0, -259.15]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 19.4],
"G1": [0.0, -22.5, 19.4],
"H1": [0.0, -31.5, 19.4]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 19.4],
"G1": [0.0, -22.5, 19.4],
"H1": [0.0, -31.5, 19.4]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 35.52],
"G1": [0.0, -22.5, 35.52],
"H1": [0.0, -31.5, 35.52]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 35.52],
"G1": [0.0, -22.5, 35.52],
"H1": [0.0, -31.5, 35.52]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"F1": [0.0, -13.5, 0.8],
"G1": [0.0, -22.5, 0.8],
"H1": [0.0, -31.5, 0.8]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,6 @@
"H10": [45.0, -88.5, -259.15],
"H11": [54.0, -88.5, -259.15],
"H12": [63.0, -88.5, -259.15]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 12.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 12.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 12.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 12.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 45.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 45.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 45.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 45.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 50.14]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 50.14]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 50.14]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 10.45]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 10.45]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 10.45]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 29.45]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 29.45]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"orderedColumns": [{ "key": "1", "orderedNozzles": ["A1"] }],
"nozzleMap": {
"A1": [0.0, 0.0, 25.0]
}
},
"lldSettings": {}
}
Loading
Loading