Skip to content

Commit

Permalink
I can't rebase apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Aug 7, 2024
1 parent c1ecd94 commit f5db9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2717,7 +2717,7 @@ async def liquid_probe(
# probe_start_pos.z + z_distance of pass - pos.z should be < max_z_dist
# due to rounding errors this can get caught in an infinite loop when the distance is almost equal
# so we check to see if they're within 0.01 which is 1/5th the minimum movement distance from move_utils.py
while (probe_start_pos.z - pos.z) < (max_z_dist + 0.01):
while (probe_start_pos.z - pos.z) < (max_z_dist - 0.01):
# safe distance so we don't accidentally aspirate liquid if we're already close to liquid
safe_plunger_pos = top_types.Point(
pos.x, pos.y, pos.z + probe_safe_reset_mm
Expand Down
2 changes: 1 addition & 1 deletion api/tests/opentrons/hardware_control/test_ot3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ async def _fake_pos_update_and_raise(
OT3Mount.LEFT, fake_max_z_dist, fake_settings_aspirate
)
# assert that it went through 4 passes and then prepared to aspirate
assert mock_move_to_plunger_bottom.call_count == 4
assert mock_move_to_plunger_bottom.call_count == 5


@pytest.mark.parametrize(
Expand Down

0 comments on commit f5db9a7

Please sign in to comment.