We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f37ad5d commit 888182bCopy full SHA for 888182b
api/src/opentrons/hardware_control/instruments/ot3/pipette_handler.py
@@ -514,6 +514,11 @@ def plunger_position(
514
multiplier = 1.0 + (correction_volume / ul)
515
mm_dist_from_bottom = ul / instr.ul_per_mm(ul, action)
516
mm_dist_from_bottom_corrected = mm_dist_from_bottom * multiplier
517
+ max_mm = instr.plunger_positions.bottom - instr.plunger_positions.top
518
+ if mm_dist_from_bottom_corrected > max_mm:
519
+ raise ValueError(f"Pipette does not support displacement of "
520
+ f"{round(mm_dist_from_bottom_corrected, 2)} mm "
521
+ f"(maximum is {max_mm} mm)")
522
position = instr.plunger_positions.bottom - mm_dist_from_bottom_corrected
523
return round(position, 6)
524
0 commit comments