csu-hmc / GaitAnalysisToolKit

Tools for the Cleveland State Human Motion and Control Lab
http://hmc.csuohio.edu
Other
109 stars 31 forks source link

The tolerance for the missing marker test may be too small. #108

Open moorepants opened 9 years ago

moorepants commented 9 years ago
======================================================================

FAIL: gaitanalysis.tests.test_motek.TestDFlowData.test_interpolate_missing_markers

----------------------------------------------------------------------

Traceback (most recent call last):

File "/home/travis/virtualenv/python2.7_with_system_site_packages/lib/python2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/home/travis/build/csu-hmc/GaitAnalysisToolKit/gaitanalysis/tests/test_motek.py", line 893, in test_interpolate_missing_markers

atol=1e-3)

File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1168, in assert_allclose

verbose=verbose, header=header)

File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 636, in assert_array_compare

raise AssertionError(msg)

AssertionError:

Not equal to tolerance rtol=1e-07, atol=0.001

(mismatch 100.0%)

x: array([ 0.990343, 0.99178 , 0.993047, ..., 0.525993, 0.517638,

0.508187])

y: array([ 0.99034329, 0.99177959, 0.99304728, ..., 0.52599281,

0.51763803, 0.50818669])

Name Stmts Miss Cover Missing

------------------------------------------------------

gaitanalysis 1 0 100%

gaitanalysis.controlid 273 96 65% 23, 116, 136, 404, 478, 484-486, 495-496, 525-595, 619-658, 682-717, 765

gaitanalysis.gait 389 197 49% 24, 69-75, 282-292, 346, 353, 357, 377-394, 454, 459-548, 606, 644-645, 677-681, 704-709, 728-729, 755-756, 830-833, 870-953, 977-1035

gaitanalysis.markers 47 9 81% 104, 108, 111, 143, 157-163

gaitanalysis.motek 480 48 90% 23, 457-461, 912, 971-974, 996, 1193, 1195, 1198, 1201, 1254-1291, 1544-1545, 1552-1556, 1577

gaitanalysis.utils 7 3 57% 12-15

gaitanalysis.version 1 0 100%

------------------------------------------------------

TOTAL 1198 353 71%

----------------------------------------------------------------------

Ran 53 tests in 54.343s

FAILED (failures=1)
moorepants commented 9 years ago

@sabrinaabram This is probably easy to fix. The test failure may not be reproducible on your computer but is happening on the Travis ci testing machine.

https://travis-ci.org/csu-hmc/GaitAnalysisToolKit/builds/41114121