Skip to content

Commit

Permalink
math adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Aug 6, 2024
1 parent fab0b64 commit 1695a3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/tests/opentrons/hardware_control/test_ot3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
TypedDict,
)
from typing_extensions import Literal
from math import copysign
from math import copysign, isclose
import pytest
import types
from decoy import Decoy
Expand Down Expand Up @@ -952,13 +952,13 @@ async def test_liquid_probe_plunger_moves(
expected_plunger_move = (
min(p_travel_required_for_z, p_working_mm) + p_impulse_mm
)
assert plunger_move == expected_plunger_move
assert isclose(plunger_move, expected_plunger_move)

mount_travel_time = plunger_move / config.plunger_speed
mount_travel_distance = mount_speed * mount_travel_time
max_z_distance -= mount_travel_distance

move_mount_z_time = (max_z_distance + probe_safe_reset_mm) / mount_speed
move_mount_z_time = (max_z_distance + probe_pass_z_offset_mm) / mount_speed
p_travel_required_for_z = move_mount_z_time * config.plunger_speed


Expand Down

0 comments on commit 1695a3d

Please sign in to comment.