I am getting the following error when trying to run python unperturbed_perturbed_comparison.py
Cleaning and processing First Normal Walking data... /usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:57: FutureWarning: 'argmin' is deprecated. Use 'idxmin' instead. The behavior of 'argmin' will be corrected to return the positional minimum in the future. Use 'series.values.argmin' to get the position of the minimum now. return getattr(obj, method)(*args, **kwds) SciPy 0.9.0 only supports 1D filtfilt, so you get a slow version. SciPy 0.9.0 only supports 1D filtfilt, so you get a slow version. Traceback (most recent call last): File "unperturbed_perturbed_comparison.py", line 43, in <module> unperturbed_gait_data_1 = load_data('First Normal Walking', paths, tmp) File "/home/nathaniel/perturbed-data-paper/src/utils.py", line 121, in load_data belt_speed_column='RightBeltSpeed') File "/usr/local/lib/python2.7/dist-packages/gaitanalysis/gait.py", line 681, in split_at data_frame.index.values.astype(float)) File "/usr/local/lib/python2.7/dist-packages/scipy/integrate/quadrature.py", line 318, in simps x=x.reshape(tuple(shapex)) TypeError: 'numpy.float64' object cannot be interpreted as an index
I am getting the following error when trying to run
python unperturbed_perturbed_comparison.py
Cleaning and processing First Normal Walking data... /usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:57: FutureWarning: 'argmin' is deprecated. Use 'idxmin' instead. The behavior of 'argmin' will be corrected to return the positional minimum in the future. Use 'series.values.argmin' to get the position of the minimum now. return getattr(obj, method)(*args, **kwds) SciPy 0.9.0 only supports 1D filtfilt, so you get a slow version. SciPy 0.9.0 only supports 1D filtfilt, so you get a slow version. Traceback (most recent call last): File "unperturbed_perturbed_comparison.py", line 43, in <module> unperturbed_gait_data_1 = load_data('First Normal Walking', paths, tmp) File "/home/nathaniel/perturbed-data-paper/src/utils.py", line 121, in load_data belt_speed_column='RightBeltSpeed') File "/usr/local/lib/python2.7/dist-packages/gaitanalysis/gait.py", line 681, in split_at data_frame.index.values.astype(float)) File "/usr/local/lib/python2.7/dist-packages/scipy/integrate/quadrature.py", line 318, in simps x=x.reshape(tuple(shapex)) TypeError: 'numpy.float64' object cannot be interpreted as an index