Skip to content

Commit f6831f5

Browse files
committed
Made the inverse dynamics test stricter.
1 parent 12c63d1 commit f6831f5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

gaitanalysis/tests/test_gait.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
from pandas.util.testing import assert_frame_equal
1212
from nose.tools import assert_raises
1313
from oct2py import octave
14-
from dtk.process import (time_vector, butterworth, derivative,
15-
coefficient_of_determination)
14+
from dtk.process import time_vector, butterworth, derivative
1615

1716
# local
1817
from ..gait import (find_constant_speed, interpolate, GaitData,
@@ -420,6 +419,4 @@ def test_lower_extremity_2d_inverse_dynamics():
420419
expected_res = (angles, velocities, moments, forces)
421420

422421
for array, expected_array in zip(res, expected_res):
423-
# NOTE : This is the best check I was able to come up with to
424-
# compare the time series.
425-
assert coefficient_of_determination(expected_array, array) > 0.99
422+
testing.assert_allclose(array, expected_array)

0 commit comments

Comments
 (0)