Skip to content

Commit

Permalink
limit plunger travel time based on their buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed May 7, 2024
1 parent 74da40c commit 1135ad9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hardware-testing/hardware_testing/liquid_sense/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1135ad9

Please sign in to comment.