[Scipy-tickets] [SciPy] #469: Test failures

SciPy scipy-tickets@scipy....
Thu Jul 26 10:03:44 CDT 2007


#469: Test failures
--------------------------+-------------------------------------------------
 Reporter:  nils          |       Owner:  somebody     
     Type:  defect        |      Status:  new          
 Priority:  high          |   Milestone:  0.5.3 Release
Component:  scipy.linalg  |     Version:  devel        
 Severity:  major         |    Keywords:               
--------------------------+-------------------------------------------------
 If I run the script test_release.py with latest svn I get
 {{{
 python -i test_release.py
 0.5.3.dev3197
   Found 9 tests for scipy.cluster.vq
   Found 18 tests for scipy.fftpack.basic
   Found 4 tests for scipy.fftpack.helper
   Found 20 tests for scipy.fftpack.pseudo_diffs
   Found 1 tests for scipy.integrate
   Found 10 tests for scipy.integrate.quadpack
   Found 3 tests for scipy.integrate.quadrature
   Found 6 tests for scipy.interpolate
   Found 6 tests for scipy.interpolate.fitpack
   Found 4 tests for scipy.io.array_import
   Found 28 tests for scipy.io.mio
   Found 13 tests for scipy.io.mmio
   Found 5 tests for scipy.io.npfile
   Found 4 tests for scipy.io.recaster
   Found 16 tests for scipy.lib.blas
   Found 128 tests for scipy.lib.blas.fblas
   Found 42 tests for scipy.lib.lapack
   Found 41 tests for scipy.linalg.basic
   Found 14 tests for scipy.linalg.blas
   Found 72 tests for scipy.linalg.decomp
   Found 128 tests for scipy.linalg.fblas
   Found 6 tests for scipy.linalg.iterative
   Found 4 tests for scipy.linalg.lapack
   Found 7 tests for scipy.linalg.matfuncs
   Found 9 tests for scipy.linsolve.umfpack
   Found 2 tests for scipy.maxentropy
   Found 399 tests for scipy.ndimage
   Found 5 tests for scipy.odr
   Found 7 tests for scipy.optimize
   Found 1 tests for scipy.optimize.cobyla
   Found 10 tests for scipy.optimize.nonlin
   Found 4 tests for scipy.optimize.zeros
   Found 4 tests for scipy.signal.signaltools
   Found 141 tests for scipy.sparse
   Found 342 tests for scipy.special.basic
   Found 3 tests for scipy.special.spfun_stats
   Found 107 tests for scipy.stats
   Found 72 tests for scipy.stats.distributions
   Found 10 tests for scipy.stats.morestats
   Found 0 tests for __main__
 .../usr/lib64/python2.4/site-packages/scipy/cluster/vq.py:477:
 UserWarning: One of the clusters is empty. Re-run kmean with a different
 initialization.
   warnings.warn("One of the clusters is empty. "
 exception raised as expected: One of the clusters is empty. Re-run kmean
 with a different initialization.
 ................................................Residual:
 1.05006987327e-07
 ..................../usr/lib64/python2.4/site-
 packages/scipy/interpolate/fitpack2.py:458: UserWarning:
 The coefficients of the spline returned have been computed as the
 minimal norm least-squares solution of a (numerically) rank deficient
 system (deficiency=7). If deficiency is large, the results may be
 inaccurate. Deficiency may strongly depend on the value of eps.
   warnings.warn(message)
 ......
 Don't worry about a warning regarding the number of bytes read.
 Warning: 1000000 bytes requested, 20 bytes read.
 .........................................................................caxpy:n=4
 ..caxpy:n=3
 ....ccopy:n=4
 ..ccopy:n=3
 .............cscal:n=4
 ....cswap:n=4
 ..cswap:n=3
 .....daxpy:n=4
 ..daxpy:n=3
 ....dcopy:n=4
 ..dcopy:n=3
 .............dscal:n=4
 ....dswap:n=4
 ..dswap:n=3
 .....saxpy:n=4
 ..saxpy:n=3
 ....scopy:n=4
 ..scopy:n=3
 .............sscal:n=4
 ....sswap:n=4
 ..sswap:n=3
 .....zaxpy:n=4
 ..zaxpy:n=3
 ....zcopy:n=4
 ..zcopy:n=3
 .............zscal:n=4
 ....zswap:n=4
 ..zswap:n=3
 ..............................................................................................................................................................................caxpy:n=4
 ..caxpy:n=3
 ....ccopy:n=4
 ..ccopy:n=3
 .............cscal:n=4
 ....cswap:n=4
 ..cswap:n=3
 .....daxpy:n=4
 ..daxpy:n=3
 ....dcopy:n=4
 ..dcopy:n=3
 .............dscal:n=4
 ....dswap:n=4
 ..dswap:n=3
 .....saxpy:n=4
 ..saxpy:n=3
 ....scopy:n=4
 ..scopy:n=3
 .............sscal:n=4
 ....sswap:n=4
 ..sswap:n=3
 .....zaxpy:n=4
 ..zaxpy:n=3
 ....zcopy:n=4
 ..zcopy:n=3
 .............zscal:n=4
 ....zswap:n=4
 ..zswap:n=3
 .............Result may be inaccurate, approximate err = 1.61484965563e-08
 ...Result may be inaccurate, approximate err = 1.25504040833e-10
 ......Use minimum degree ordering on A'+A.
 ..Use minimum degree ordering on A'+A.
 ...Use minimum degree ordering on A'+A.
 ........................................................................................................../usr/lib64/python2.4
 /site-packages/scipy/ndimage/interpolation.py:41: UserWarning: Mode
 "reflect" may yield incorrect results on boundaries. Please use "mirror"
 instead.
   warnings.warn('Mode "reflect" may yield incorrect results on '
 ........................................................................................................................................................................................................................................................................................................F..F.......F
 Error = 0.0
 ...........................................Use minimum degree ordering on
 A'+A.
 ....................................Use minimum degree ordering on A'+A.
 ....................................Use minimum degree ordering on A'+A.
 ...............................Use minimum degree ordering on A'+A.
 .............................................................................................................................................................................................................................................................................................................................................0.2
 0.2
 0.2
 ......0.2
 ..0.2
 0.2
 0.2
 0.2
 0.2
 ........................................................................................................................................................................................................Ties
 preclude use of exact statistic.
 ..Ties preclude use of exact statistic.
 ......
 ======================================================================
 FAIL: test_explicit (scipy.tests.test_odr.test_odr)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-packages/scipy/odr/tests/test_odr.py",
 line 49, in test_explicit
     np.array([  1.2646548050648876e+03,  -5.4018409956678255e+01,
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 215, in assert_array_compare
     assert cond, msg
 AssertionError:
 Arrays are not almost equal

 (mismatch 100.0%)
  x: array([  1.26462971e+03,  -5.42545890e+01,  -8.64250389e-02])
  y: array([  1.26465481e+03,  -5.40184100e+01,  -8.78497122e-02])

 ======================================================================
 FAIL: test_multi (scipy.tests.test_odr.test_odr)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-packages/scipy/odr/tests/test_odr.py",
 line 190, in test_multi
     np.array([ 4.3799880305938963,  2.4333057577497703,
 8.0028845899503978,
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 215, in assert_array_compare
     assert cond, msg
 AssertionError:
 Arrays are not almost equal

 (mismatch 100.0%)
  x: array([ 4.31272063,  2.44289312,  7.76215871,  0.55995622,
 0.46423343])
  y: array([ 4.37998803,  2.43330576,  8.00288459,  0.51011472,
 0.51739023])

 ----------------------------------------------------------------------
 Ran 1705 tests in 5.798s

 FAILED (failures=2)
 Numpy is installed in /usr/lib64/python2.4/site-packages/numpy
 Numpy version 1.0.4.dev3901
 Python version 2.4.1 (#1, May 25 2007, 18:41:31) [GCC 4.0.2 20050901
 (prerelease) (SUSE Linux)]
   Found 10 tests for numpy.core.defmatrix
   Found 36 tests for numpy.core.ma
   Found 213 tests for numpy.core.multiarray
   Found 59 tests for numpy.core.numeric
   Found 31 tests for numpy.core.numerictypes
   Found 9 tests for numpy.core.records
   Found 5 tests for numpy.core.scalarmath
   Found 14 tests for numpy.core.umath
   Found 4 tests for numpy.ctypeslib
   Found 5 tests for numpy.distutils.misc_util
   Found 1 tests for numpy.fft.fftpack
   Found 3 tests for numpy.fft.helper
   Found 9 tests for numpy.lib.arraysetops
   Found 46 tests for numpy.lib.function_base
   Found 5 tests for numpy.lib.getlimits
   Found 4 tests for numpy.lib.index_tricks
   Found 2 tests for numpy.lib.polynomial
   Found 49 tests for numpy.lib.shape_base
   Found 13 tests for numpy.lib.twodim_base
   Found 42 tests for numpy.lib.type_check
   Found 1 tests for numpy.lib.ufunclike
   Found 40 tests for numpy.linalg
   Found 0 tests for __main__
 ...................................................................................................................................................................................................................E.............................................................................................................................................................................................................................................................................................................................................................EEEEE...E....E....E..F......E....E......
 ======================================================================
 ERROR: Ticket #396
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/core/tests/test_regression.py", line 600, in
 check_poly1d_nan_roots
     self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r")
   File "/usr/lib64/python2.4/unittest.py", line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 619, in __getattr__
     return roots(self.coeffs)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 124, in roots
     roots = _eigvals(A)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 40, in _eigvals
     return eigvals(arg)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 378, in eigvals
     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 128, in eig
     a1 = asarray_chkfinite(a)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/function_base.py",
 line 361, in asarray_chkfinite
     raise ValueError, "array must not contain infs or NaNs"
 ValueError: array must not contain infs or NaNs

 ======================================================================
 ERROR: check_cdouble (numpy.tests.test_linalg.test_det)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 39, in check_cdouble
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 89, in do
     assert_almost_equal(d, multiply.reduce(ev))
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 14, in
 assert_almost_equal
     if a.dtype.type in (single, csingle):
 AttributeError: 'complex' object has no attribute 'dtype'

 ======================================================================
 ERROR: check_csingle (numpy.tests.test_linalg.test_det)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 34, in check_csingle
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 89, in do
     assert_almost_equal(d, multiply.reduce(ev))
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 14, in
 assert_almost_equal
     if a.dtype.type in (single, csingle):
 AttributeError: 'complex' object has no attribute 'dtype'

 ======================================================================
 ERROR: check_double (numpy.tests.test_linalg.test_det)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 29, in check_double
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 89, in do
     assert_almost_equal(d, multiply.reduce(ev))
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 14, in
 assert_almost_equal
     if a.dtype.type in (single, csingle):
 AttributeError: 'float' object has no attribute 'dtype'

 ======================================================================
 ERROR: check_empty (numpy.tests.test_linalg.test_det)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 45, in check_empty
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 83, in do
     d = linalg.det(a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/basic.py", line
 391, in det
     raise ValueError, 'expected square matrix'
 ValueError: expected square matrix

 ======================================================================
 ERROR: check_single (numpy.tests.test_linalg.test_det)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 24, in check_single
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 89, in do
     assert_almost_equal(d, multiply.reduce(ev))
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 14, in
 assert_almost_equal
     if a.dtype.type in (single, csingle):
 AttributeError: 'float' object has no attribute 'dtype'

 ======================================================================
 ERROR: check_empty (numpy.tests.test_linalg.test_eig)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 45, in check_empty
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 68, in do
     evalues, evectors = linalg.eig(a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 130, in eig
     raise ValueError, 'expected square matrix'
 ValueError: expected square matrix

 ======================================================================
 ERROR: check_empty (numpy.tests.test_linalg.test_eigvals)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 45, in check_empty
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 62, in do
     ev = linalg.eigvals(a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 378, in eigvals
     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 130, in eig
     raise ValueError, 'expected square matrix'
 ValueError: expected square matrix

 ======================================================================
 ERROR: check_empty (numpy.tests.test_linalg.test_inv)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 45, in check_empty
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 57, in do
     a_inv = linalg.inv(a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/basic.py", line
 268, in inv
     raise ValueError, 'expected square matrix'
 ValueError: expected square matrix

 ======================================================================
 ERROR: check_empty (numpy.tests.test_linalg.test_pinv)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 45, in check_empty
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 78, in do
     a_ginv = linalg.pinv(a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/basic.py", line
 468, in pinv
     return lstsq(a, b, cond=cond)[0]
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/basic.py", line
 445, in lstsq
     overwrite_b = overwrite_b)
 ValueError: failed to create intent(cache|hide)|optional array-- must have
 defined dimensions but got (0,)

 ======================================================================
 ERROR: check_empty (numpy.tests.test_linalg.test_solve)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 45, in check_empty
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 52, in do
     x = linalg.solve(a, b)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/basic.py", line
 103, in solve
     raise ValueError, 'expected square matrix'
 ValueError: expected square matrix

 ======================================================================
 FAIL: check_csingle (numpy.tests.test_linalg.test_lstsq)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 34, in check_csingle
     self.do(a, b)
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 95, in do
     assert_almost_equal(b, dot(a, x))
   File "/usr/lib64/python2.4/site-
 packages/numpy/linalg/tests/test_linalg.py", line 18, in
 assert_almost_equal
     old_assert_almost_equal(a, b, decimal=decimal, **kw)
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 154, in assert_almost_equal
     return assert_array_almost_equal(actual, desired, decimal, err_msg)
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 215, in assert_array_compare
     assert cond, msg
 AssertionError:
 Arrays are not almost equal

 (mismatch 50.0%)
  x: array([ 2.+1.j,  1.+2.j], dtype=complex64)
  y: array([ 2.00000000+1.00000024j,  0.99999809+1.99999976j],
 dtype=complex64)

 ----------------------------------------------------------------------
 Ran 601 tests in 0.612s

 FAILED (failures=1, errors=11)

 }}}
 I have installed numpy and scipy from scratch.

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/469>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list