Open neildhir opened 7 years ago
Thanks. pandas has had a number of updates since the last release of this package. You can install an older version of pandas as a work around.
Ah cool, yeah that's a good idea. Seems to be working for the stuff I am using it for now though.
Can confirm that rolling back pandas==0.17.1
solves some of the problems:
user:~/GaitAnalysisToolKit$ nosetests
...............E........................F............
======================================================================
ERROR: gaitanalysis.tests.test_gait.test_find_constant_speed
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/user/cloud/GaitAnalysisToolKit/gaitanalysis/tests/test_gait.py", line 35, in test_find_constant_speed
indice, constant_speed_time = find_constant_speed(time, speed, plot=False)
File "/home/user/cloud/GaitAnalysisToolKit/gaitanalysis/gait.py", line 78, in find_constant_speed
return len(time) - (new_indice), time[len(time) - new_indice]
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
======================================================================
FAIL: gaitanalysis.tests.test_motek.TestDFlowData.test_orient_accelerometers
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/user/cloud/GaitAnalysisToolKit/gaitanalysis/tests/test_motek.py", line 1062, in test_orient_accelerometers
-relabeled_data['Back_Left_AccY'])
File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1395, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
(mismatch 100.0%)
x: array([ 0., 0., 0., ..., 0., 0., 0.])
y: array([ 0.095853, 0.085894, 0.075927, ..., -0.859578, -0.864645,
-0.869626])
----------------------------------------------------------------------
Ran 53 tests in 31.674s
FAILED (errors=1, failures=1)
All these should be fixed in master. Can you confirm?
Currently getting this when running
nosetests
having dealt with theinterp1q
tointerp1
issue.