File tree 1 file changed +6
-5
lines changed
api/src/opentrons/hardware_control/instruments/ot3
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -509,11 +509,12 @@ def plunger_position(
509
509
correction_volume : float = 0.0 ,
510
510
) -> float :
511
511
if ul == 0 :
512
- return instr .plunger_positions .bottom
513
- multiplier = 1.0 + (correction_volume / ul )
514
- mm_dist_from_bottom = ul / instr .ul_per_mm (ul , action )
515
- mm_dist_from_bottom_corrected = mm_dist_from_bottom * multiplier
516
- position = instr .plunger_positions .bottom - mm_dist_from_bottom_corrected
512
+ position = instr .plunger_positions .bottom
513
+ else :
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
+ position = instr .plunger_positions .bottom - mm_dist_from_bottom_corrected
517
518
return round (position , 6 )
518
519
519
520
def plunger_speed (
You can’t perform that action at this time.
0 commit comments