Closed chrisgorgo closed 7 years ago
This error goes away when I use:
mc = MRIMotionCorrection(quality=1.0)
This bug is also making tests on master fail:
======================================================================
ERROR: pypreprocess.tests.test_slice_timing.test_STC_for_sinusoidal_mixture
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/miniconda2/envs/testenv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/travis/build/neurospin/pypreprocess/pypreprocess/tests/test_slice_timing.py", line 136, in test_STC_for_sinusoidal_mixture
stc.fit(n_slices=n_slices, n_scans=n_scans)
File "/home/travis/build/neurospin/pypreprocess/pypreprocess/slice_timing.py", line 305, in fit
phi[1 + N / 2 - offset:] = -phi[N / 2 + offset - 1:0:-1]
TypeError: slice indices must be integers or None or have an __index__ method
======================================================================
ERROR: pypreprocess.tests.test_slice_timing.test_STC_for_HRF
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/miniconda2/envs/testenv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/travis/build/neurospin/pypreprocess/pypreprocess/tests/test_slice_timing.py", line 208, in test_STC_for_HRF
stc.fit(n_scans=n_scans, n_slices=n_slices)
File "/home/travis/build/neurospin/pypreprocess/pypreprocess/slice_timing.py", line 305, in fit
phi[1 + N / 2 - offset:] = -phi[N / 2 + offset - 1:0:-1]
TypeError: slice indices must be integers or None or have an __index__ method
======================================================================
ERROR: pypreprocess.tests.test_slice_timing.test_transform
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/miniconda2/envs/testenv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/travis/build/neurospin/pypreprocess/pypreprocess/tests/test_slice_timing.py", line 244, in test_transform
fmristc = fMRISTC().fit(raw_data=stuff)
File "/home/travis/build/neurospin/pypreprocess/pypreprocess/slice_timing.py", line 305, in fit
phi[1 + N / 2 - offset:] = -phi[N / 2 + offset - 1:0:-1]
TypeError: slice indices must be integers or None or have an __index__ method
----------------------------------------------------------------------
It must be caused by some API breaking dependency update...