File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1111from pandas .util .testing import assert_frame_equal
1212from nose .tools import assert_raises
1313from 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
1817from ..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 )
You can’t perform that action at this time.
0 commit comments