Hi,
I've got one failure if I run numpy.test() after running scipy.test() :
======================================================================
ERROR: Ticket #396
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/core/tests/test_regression.py",
line 600, in check_poly1d_nan_roots
self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r")
File "/home/loic/tmp/Linux/lib/python2.5/unittest.py", line 320, in
failUnlessRaises
callableObj(*args, **kwargs)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 623, in __getattr__
return roots(self.coeffs)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 124, in roots
roots = _eigvals(A)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 37, in _eigvals
return eigvals(arg)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py",
line 378, in eigvals
return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py",
line 128, in eig
a1 = asarray_chkfinite(a)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/function_base.py",
line 398, in asarray_chkfinite
raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs
But I've got no error if I begin with numpy test.
I've seen that this Ticket #396 seems closed in Trac, should I reopen it ?
for more information, I've attached the results of scipy.test and numpy.test
.
Regards,
--
LB
In [1]: import scipy
In [2]: scipy.test()
Found 9/9 tests for scipy.cluster.vq
Found 18/18 tests for scipy.fftpack.basic
Found 4/4 tests for scipy.fftpack.helper
Found 20/20 tests for scipy.fftpack.pseudo_diffs
Found 1/1 tests for scipy.integrate
Found 10/10 tests for scipy.integrate.quadpack
Found 3/3 tests for scipy.integrate.quadrature
Found 6/6 tests for scipy.interpolate
Found 6/6 tests for scipy.interpolate.fitpack
Found 4/4 tests for scipy.io.array_import
Found 28/28 tests for scipy.io.mio
Found 13/13 tests for scipy.io.mmio
Found 5/5 tests for scipy.io.npfile
Found 4/4 tests for scipy.io.recaster
Found 16/16 tests for scipy.lib.blas
Found 128/128 tests for scipy.lib.blas.fblas
Found 42/42 tests for scipy.lib.lapack
Found 41/41 tests for scipy.linalg.basic
<module 'scipy.linalg.fblas' from
'/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/fblas.so'>
Found 16/16 tests for scipy.linalg.blas
Found 72/72 tests for scipy.linalg.decomp
Found 128/128 tests for scipy.linalg.fblas
Found 6/6 tests for scipy.linalg.iterative
Found 4/4 tests for scipy.linalg.lapack
Found 7/7 tests for scipy.linalg.matfuncs
Warning: FAILURE importing tests for <module 'scipy.linsolve.umfpack' from
'.../linsolve/umfpack/__init__.pyc'>
/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py:17:
AttributeError: 'module' object has no attribute 'umfpack' (in <module>)
Warning: FAILURE importing tests for <module 'scipy.linsolve.umfpack.umfpack'
from '...y/linsolve/umfpack/umfpack.pyc'>
/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py:17:
AttributeError: 'module' object has no attribute 'umfpack' (in <module>)
Found 2/2 tests for scipy.maxentropy
Found 399/399 tests for scipy.ndimage
Found 5/5 tests for scipy.odr
Found 8/8 tests for scipy.optimize
Found 1/1 tests for scipy.optimize.cobyla
Found 10/10 tests for scipy.optimize.nonlin
Found 4/4 tests for scipy.optimize.zeros
Found 5/5 tests for scipy.signal.signaltools
Found 4/4 tests for scipy.signal.wavelets
Found 152/152 tests for scipy.sparse
Found 342/342 tests for scipy.special.basic
Found 3/3 tests for scipy.special.spfun_stats
Found 107/107 tests for scipy.stats
Found 73/73 tests for scipy.stats.distributions
Found 10/10 tests for scipy.stats.morestats
Found 0/0 tests for __main__
.../home/loic/tmp/Linux/lib/python2.5/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.05006950608e-07
..................../home/loic/tmp/Linux/lib/python2.5/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
............................FF..................................................................................................................................................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 = 8.44205331188e-09
...Result may be inaccurate, approximate err = 1.87387729512e-10
............................................................................................................/home/loic/tmp/Linux/lib/python2.5/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 '
.....................................................................................................................................................................................................................................................................................................................................................................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: check_syevr (scipy.lib.tests.test_lapack.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/lib/lapack/tests/esv_tests.py",
line 41, in check_syevr
assert_array_almost_equal(w,exact_w)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
232, in assert_array_almost_equal
header='Arrays are not almost equal')
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
217, in assert_array_compare
assert cond, msg
AssertionError:
Arrays are not almost equal
(mismatch 33.3333333333%)
x: array([-0.66992444, 0.48769444, 9.18222713], dtype=float32)
y: array([-0.66992434, 0.48769389, 9.18223045])
======================================================================
FAIL: check_syevr_irange (scipy.lib.tests.test_lapack.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/lib/lapack/tests/esv_tests.py",
line 66, in check_syevr_irange
assert_array_almost_equal(w,exact_w[rslice])
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
232, in assert_array_almost_equal
header='Arrays are not almost equal')
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
217, in assert_array_compare
assert cond, msg
AssertionError:
Arrays are not almost equal
(mismatch 33.3333333333%)
x: array([-0.66992444, 0.48769444, 9.18222713], dtype=float32)
y: array([-0.66992434, 0.48769389, 9.18223045])
----------------------------------------------------------------------
Ran 1716 tests in 6.077s
FAILED (failures=2)
Out[2]: <unittest._TextTestResult run=1716 errors=0 failures=2>
In [3]: import numpy
In [4]: numpy.test()
Numpy is installed in /home/loic/tmp/Linux/lib/python2.5/site-packages/numpy
Numpy version 1.0.4
Python version 2.5.1 (r251:54863, Feb 23 2008, 23:07:15) [GCC 4.2.3]
Found 10/10 tests for numpy.core.defmatrix
Found 36/36 tests for numpy.core.ma
Found 223/223 tests for numpy.core.multiarray
Found 65/65 tests for numpy.core.numeric
Found 31/31 tests for numpy.core.numerictypes
Found 12/12 tests for numpy.core.records
Found 6/6 tests for numpy.core.scalarmath
Found 14/14 tests for numpy.core.umath
Found 4/4 tests for numpy.ctypeslib
Found 5/5 tests for numpy.distutils.misc_util
Found 1/1 tests for numpy.fft.fftpack
Found 3/3 tests for numpy.fft.helper
Found 9/9 tests for numpy.lib.arraysetops
Found 46/46 tests for numpy.lib.function_base
Found 5/5 tests for numpy.lib.getlimits
Found 4/4 tests for numpy.lib.index_tricks
Found 3/3 tests for numpy.lib.polynomial
Found 49/49 tests for numpy.lib.shape_base
Found 15/15 tests for numpy.lib.twodim_base
Found 43/43 tests for numpy.lib.type_check
Found 1/1 tests for numpy.lib.ufunclike
Found 40/40 tests for numpy.linalg
Found 2/2 tests for numpy.random
Found 0/0 tests for __main__
........................................................................................................................................................E...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: Ticket #396
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/core/tests/test_regression.py",
line 600, in check_poly1d_nan_roots
self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r")
File "/home/loic/tmp/Linux/lib/python2.5/unittest.py", line 320, in
failUnlessRaises
callableObj(*args, **kwargs)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 623, in __getattr__
return roots(self.coeffs)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 124, in roots
roots = _eigvals(A)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 37, in _eigvals
return eigvals(arg)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py", line
378, in eigvals
return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py", line
128, in eig
a1 = asarray_chkfinite(a)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/function_base.py",
line 398, in asarray_chkfinite
raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs
----------------------------------------------------------------------
Ran 692 tests in 0.716s
FAILED (errors=1)
Out[4]: <unittest._TextTestResult run=692 errors=1 failures=0>
In [1]: import numpy
In [2]: numpy.test()
Numpy is installed in /home/loic/tmp/Linux/lib/python2.5/site-packages/numpy
Numpy version 1.0.4
Python version 2.5.1 (r251:54863, Feb 23 2008, 23:07:15) [GCC 4.2.3]
Found 10/10 tests for numpy.core.defmatrix
Found 36/36 tests for numpy.core.ma
Found 223/223 tests for numpy.core.multiarray
Found 65/65 tests for numpy.core.numeric
Found 31/31 tests for numpy.core.numerictypes
Found 12/12 tests for numpy.core.records
Found 6/6 tests for numpy.core.scalarmath
Found 14/14 tests for numpy.core.umath
Found 4/4 tests for numpy.ctypeslib
Found 5/5 tests for numpy.distutils.misc_util
Found 1/1 tests for numpy.fft.fftpack
Found 3/3 tests for numpy.fft.helper
Found 9/9 tests for numpy.lib.arraysetops
Found 46/46 tests for numpy.lib.function_base
Found 5/5 tests for numpy.lib.getlimits
Found 4/4 tests for numpy.lib.index_tricks
Found 3/3 tests for numpy.lib.polynomial
Found 49/49 tests for numpy.lib.shape_base
Found 15/15 tests for numpy.lib.twodim_base
Found 43/43 tests for numpy.lib.type_check
Found 1/1 tests for numpy.lib.ufunclike
Found 40/40 tests for numpy.linalg
Found 2/2 tests for numpy.random
Found 0/0 tests for __main__
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 692 tests in 0.710s
OK
Out[2]: <unittest._TextTestResult run=692 errors=0 failures=0>
In [3]: import scipy
In [4]: scipy.test()
Found 9/9 tests for scipy.cluster.vq
Found 18/18 tests for scipy.fftpack.basic
Found 4/4 tests for scipy.fftpack.helper
Found 20/20 tests for scipy.fftpack.pseudo_diffs
Found 1/1 tests for scipy.integrate
Found 10/10 tests for scipy.integrate.quadpack
Found 3/3 tests for scipy.integrate.quadrature
Found 6/6 tests for scipy.interpolate
Found 6/6 tests for scipy.interpolate.fitpack
Found 4/4 tests for scipy.io.array_import
Found 28/28 tests for scipy.io.mio
Found 13/13 tests for scipy.io.mmio
Found 5/5 tests for scipy.io.npfile
Found 4/4 tests for scipy.io.recaster
Found 16/16 tests for scipy.lib.blas
Found 128/128 tests for scipy.lib.blas.fblas
Found 42/42 tests for scipy.lib.lapack
Found 41/41 tests for scipy.linalg.basic
<module 'scipy.linalg.fblas' from
'/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/fblas.so'>
Found 16/16 tests for scipy.linalg.blas
Found 72/72 tests for scipy.linalg.decomp
Found 128/128 tests for scipy.linalg.fblas
Found 6/6 tests for scipy.linalg.iterative
Found 4/4 tests for scipy.linalg.lapack
Found 7/7 tests for scipy.linalg.matfuncs
Warning: FAILURE importing tests for <module 'scipy.linsolve.umfpack' from
'.../linsolve/umfpack/__init__.pyc'>
/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py:17:
AttributeError: 'module' object has no attribute 'umfpack' (in <module>)
Warning: FAILURE importing tests for <module 'scipy.linsolve.umfpack.umfpack'
from '...y/linsolve/umfpack/umfpack.pyc'>
/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py:17:
AttributeError: 'module' object has no attribute 'umfpack' (in <module>)
Found 2/2 tests for scipy.maxentropy
Found 399/399 tests for scipy.ndimage
Found 5/5 tests for scipy.odr
Found 8/8 tests for scipy.optimize
Found 1/1 tests for scipy.optimize.cobyla
Found 10/10 tests for scipy.optimize.nonlin
Found 4/4 tests for scipy.optimize.zeros
Found 5/5 tests for scipy.signal.signaltools
Found 4/4 tests for scipy.signal.wavelets
Found 152/152 tests for scipy.sparse
Found 342/342 tests for scipy.special.basic
Found 3/3 tests for scipy.special.spfun_stats
Found 107/107 tests for scipy.stats
Found 73/73 tests for scipy.stats.distributions
Found 10/10 tests for scipy.stats.morestats
Found 0/0 tests for __main__
.../home/loic/tmp/Linux/lib/python2.5/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.05006950608e-07
..................../home/loic/tmp/Linux/lib/python2.5/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
............................FF..................................................................................................................................................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 = 8.44205331188e-09
...Result may be inaccurate, approximate err = 1.87387729512e-10
............................................................................................................/home/loic/tmp/Linux/lib/python2.5/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 '
.....................................................................................................................................................................................................................................................................................................................................................................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: check_syevr (scipy.lib.tests.test_lapack.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/lib/lapack/tests/esv_tests.py",
line 41, in check_syevr
assert_array_almost_equal(w,exact_w)
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
232, in assert_array_almost_equal
header='Arrays are not almost equal')
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
217, in assert_array_compare
assert cond, msg
AssertionError:
Arrays are not almost equal
(mismatch 33.3333333333%)
x: array([-0.66992444, 0.48769444, 9.18222713], dtype=float32)
y: array([-0.66992434, 0.48769389, 9.18223045])
======================================================================
FAIL: check_syevr_irange (scipy.lib.tests.test_lapack.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/lib/lapack/tests/esv_tests.py",
line 66, in check_syevr_irange
assert_array_almost_equal(w,exact_w[rslice])
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
232, in assert_array_almost_equal
header='Arrays are not almost equal')
File
"/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/testing/utils.py", line
217, in assert_array_compare
assert cond, msg
AssertionError:
Arrays are not almost equal
(mismatch 33.3333333333%)
x: array([-0.66992444, 0.48769444, 9.18222713], dtype=float32)
y: array([-0.66992434, 0.48769389, 9.18223045])
----------------------------------------------------------------------
Ran 1716 tests in 6.102s
FAILED (failures=2)
Out[4]: <unittest._TextTestResult run=1716 errors=0 failures=2>
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion