Skip to content

Commit

Permalink
float error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin CO committed Mar 5, 2025
1 parent ebc2111 commit a2761cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/shard2/test_fes_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_pulse_width_multi_muscle_fes_dynamics():

sol = ocp.solve(Solver.IPOPT(_max_iter=1000))

np.testing.assert_almost_equal(sol.cost, 1390.4256180619614)
np.testing.assert_almost_equal(float(sol.cost), 1390.4256426188954)
np.testing.assert_almost_equal(
sol.decision_controls(to_merge=SolutionMerge.NODES)["last_pulse_width_BIClong"][0],
np.array(
Expand Down Expand Up @@ -122,7 +122,7 @@ def test_pulse_intensity_multi_muscle_fes_dynamics():

sol = ocp.solve(Solver.IPOPT(_max_iter=1000))

np.testing.assert_almost_equal(sol.cost, 1904.7010473130113)
np.testing.assert_almost_equal(float(sol.cost), 1904.7010473130113)
np.testing.assert_almost_equal(
sol.parameters["pulse_intensity_BIClong"],
np.array(
Expand Down

0 comments on commit a2761cc

Please sign in to comment.