Skip to content

Commit

Permalink
tests: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Dec 2, 2024
1 parent ceb9331 commit a1b59ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_external_force.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@pytest.mark.parametrize(
"external_force_tuple",
[
(np.array([0, 0, 1 * 9.81]), np.array([0, 0, 0]), np.array([0, -0.5, 0])),
(np.array([0, 0, 1 * 9.81]), np.array([0, 0, 0]), np.array([0, 0.5, 0])),
(np.array([0, 0, 0]), np.array([-1 * 9.81 * 0.50, 0, 0]), np.array([0, 0, 0])),
],
)
Expand All @@ -31,7 +31,7 @@ def test_external_force(bionc_type, external_force_tuple):
module = TestUtils.load_module(bionc + "/examples/forward_dynamics/pendulum_with_force.py")

fext = ExternalForceSet.empty_from_nb_segment(1)
external_force = np.concatenate([external_force_tuple[0], external_force_tuple[1]])
external_force = np.concatenate([external_force_tuple[1], external_force_tuple[0]])
fext.add_in_global_local_point(
external_force=external_force, segment_index=0, point_in_local=external_force_tuple[2]
)
Expand Down

0 comments on commit a1b59ec

Please sign in to comment.