[SciPy-User] Several test failures

Christoph Gohlke cgohlke@uci....
Fri Sep 28 11:39:30 CDT 2012


On 9/27/2012 12:00 PM, Nils Wagner wrote:
>>>> numpy.__version__
> '1.8.0.dev-1ea1592'
>>>> scipy.__version__
> '0.12.0.dev-fd68897'
>
> ======================================================================
> ERROR: test_interpolate.TestInterp1D.test_bounds
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 224, in test_bounds
>      self._bounds_check(kind)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 191, in _bounds_check
>      extrap10(11.2),
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 396, in __call__
>      y_new = self._call(x_new)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 372, in _call_spline
>      result = spleval(self._spline,x_new.ravel())
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 835, in spleval
>      res[sl] = _fitpack._bspleval(xx,xj,cvals[sl],k,deriv)
> IndexError: too many indices
>
> ======================================================================
> ERROR: test_interpolate.TestInterp1D.test_complex
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 316, in test_complex
>      self._check_complex(np.complex64, kind)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 304, in _check_complex
>      assert_array_almost_equal(y[:-1], c(x)[:-1])
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 396, in __call__
>      y_new = self._call(x_new)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 372, in _call_spline
>      result = spleval(self._spline,x_new.ravel())
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 832, in spleval
>      res[sl].real = _fitpack._bspleval(xx,xj,cvals.real[sl],k,deriv)
> IndexError: too many indices
>
> ======================================================================
> ERROR: Check the actual implementation of spline interpolation.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 144, in test_cubic
>      interp10(self.x10),
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 396, in __call__
>      y_new = self._call(x_new)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 372, in _call_spline
>      result = spleval(self._spline,x_new.ravel())
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 835, in spleval
>      res[sl] = _fitpack._bspleval(xx,xj,cvals[sl],k,deriv)
> IndexError: too many indices
>
> ======================================================================
> ERROR: test_interpolate.TestInterp1D.test_nd
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 294, in test_nd
>      self._nd_check_interp(kind)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
> line 234, in _nd_check_interp
>      interp10(np.array([[3., 5.], [2., 7.]])),
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 396, in __call__
>      y_new = self._call(x_new)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 372, in _call_spline
>      result = spleval(self._spline,x_new.ravel())
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 835, in spleval
>      res[sl] = _fitpack._bspleval(xx,xj,cvals[sl],k,deriv)
> IndexError: too many indices
>
> ======================================================================
> ERROR: test_ndgriddata.TestGriddata.test_1d
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_ndgriddata.py",
> line 73, in test_1d
>      assert_allclose(griddata(x, y, x, method=method), y,
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/ndgriddata.py",
> line 178, in griddata
>      return ip(xi)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 396, in __call__
>      y_new = self._call(x_new)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 372, in _call_spline
>      result = spleval(self._spline,x_new.ravel())
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 835, in spleval
>      res[sl] = _fitpack._bspleval(xx,xj,cvals[sl],k,deriv)
> IndexError: too many indices
>
> ======================================================================
> ERROR: test_ndgriddata.TestGriddata.test_1d_unsorted
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_ndgriddata.py",
> line 85, in test_1d_unsorted
>      assert_allclose(griddata(x, y, x, method=method), y,
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/ndgriddata.py",
> line 178, in griddata
>      return ip(xi)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 396, in __call__
>      y_new = self._call(x_new)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 372, in _call_spline
>      result = spleval(self._spline,x_new.ravel())
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
> line 835, in spleval
>      res[sl] = _fitpack._bspleval(xx,xj,cvals[sl],k,deriv)
> IndexError: too many indices
>
> ======================================================================
> ERROR: test_kdtree.test_vectorization.test_vectorized_query
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
> line 159, in test_vectorized_query
>      d, i = self.kdtree.query(np.zeros((2,4,3)))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
> line 434, in query
>      for c in np.ndindex(retshape):
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
> line 536, in __init__
>      x = as_strided(_nx.zeros(1), shape=shape,
> strides=_nx.zeros_like(shape))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
> line 28, in as_strided
>      return np.asarray(DummyArray(interface, base=x))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
> line 324, in asarray
>      return array(a, dtype, copy=False, order=order)
> ValueError: negative dimensions are not allowed
>
> ======================================================================
> ERROR: test_kdtree.test_vectorization.test_vectorized_query_all_neighbors
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
> line 187, in test_vectorized_query_all_neighbors
>      d, i =
> self.kdtree.query(np.zeros((2,4,3)),k=None,distance_upper_bound=1.1)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
> line 434, in query
>      for c in np.ndindex(retshape):
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
> line 536, in __init__
>      x = as_strided(_nx.zeros(1), shape=shape,
> strides=_nx.zeros_like(shape))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
> line 28, in as_strided
>      return np.asarray(DummyArray(interface, base=x))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
> line 324, in asarray
>      return array(a, dtype, copy=False, order=order)
> ValueError: negative dimensions are not allowed
>
> ======================================================================
> ERROR:
> test_kdtree.test_vectorization.test_vectorized_query_multiple_neighbors
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
> line 175, in test_vectorized_query_multiple_neighbors
>      d, i = self.kdtree.query(np.zeros((2,4,3)),k=kk)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
> line 434, in query
>      for c in np.ndindex(retshape):
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
> line 536, in __init__
>      x = as_strided(_nx.zeros(1), shape=shape,
> strides=_nx.zeros_like(shape))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
> line 28, in as_strided
>      return np.asarray(DummyArray(interface, base=x))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
> line 324, in asarray
>      return array(a, dtype, copy=False, order=order)
> ValueError: negative dimensions are not allowed
>
> ======================================================================
> ERROR: test_kdtree.test_random_ball_vectorized
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
> line 332, in test_random_ball_vectorized
>      r = T.query_ball_point(np.random.randn(2,3,m),1)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
> line 544, in query_ball_point
>      for c in np.ndindex(retshape):
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
> line 536, in __init__
>      x = as_strided(_nx.zeros(1), shape=shape,
> strides=_nx.zeros_like(shape))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
> line 28, in as_strided
>      return np.asarray(DummyArray(interface, base=x))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
> line 324, in asarray
>      return array(a, dtype, copy=False, order=order)
> ValueError: negative dimensions are not allowed
>
> ======================================================================
> ERROR: test_kdtree.test_random_ball_vectorized_compiled
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>      self.test(*self.arg)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
> line 342, in test_random_ball_vectorized_compiled
>      r = T.query_ball_point(np.random.randn(2,3,m),1)
>    File "ckdtree.pyx", line 1399, in
> scipy.spatial.ckdtree.cKDTree.query_ball_point
> (scipy/spatial/ckdtree.c:11875)
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
> line 536, in __init__
>      x = as_strided(_nx.zeros(1), shape=shape,
> strides=_nx.zeros_like(shape))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
> line 28, in as_strided
>      return np.asarray(DummyArray(interface, base=x))
>    File
> "/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
> line 324, in asarray
>      return array(a, dtype, copy=False, order=order)
> ValueError: negative dimensions are not allowed
>
> ----------------------------------------------------------------------
> Ran 5537 tests in 166.811s
>
> FAILED (KNOWNFAIL=14, SKIP=28, errors=11)
>

Those known errors, related to https://github.com/numpy/numpy/pull/445

Christoph


More information about the SciPy-User mailing list