From 1135ad91f60d0162e72ad3595ad5c88d1451c6ce Mon Sep 17 00:00:00 2001 From: Ryan howard Date: Tue, 7 May 2024 15:40:01 -0400 Subject: [PATCH] limit plunger travel time based on their buffer size --- .../hardware_testing/liquid_sense/execute.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hardware-testing/hardware_testing/liquid_sense/execute.py b/hardware-testing/hardware_testing/liquid_sense/execute.py index d248c8a7f2ba..ddccac09de02 100644 --- a/hardware-testing/hardware_testing/liquid_sense/execute.py +++ b/hardware-testing/hardware_testing/liquid_sense/execute.py @@ -27,6 +27,12 @@ from opentrons.protocol_api import ProtocolContext, Well, Labware +PROBE_MAX_TIME: Dict[int, float] = { + 1: 2.75, + 8: 1.75, + 96: 0.85, +} + def _load_tipracks( ctx: ProtocolContext, pipette_channels: int, protocol_cfg: Any, tip: int @@ -304,7 +310,9 @@ def find_max_z_distances( z_speed = run_args.z_speed max_z_distance = well.depth + run_args.start_height_offset plunger_travel = get_plunger_travel(run_args) - p_travel_time = plunger_travel / p_speed + p_travel_time = min( + plunger_travel / p_speed, PROBE_MAX_TIME[run_args.pipette_channels] + ) z_travels: List[float] = [] while max_z_distance > 0: