[SciPy-Dev] scipy.test failures in r6342

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Apr 27 13:39:32 CDT 2010


======================================================================
ERROR: test_callback (test_iterative.TestGMRES)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py", 
line 195, in test_callback
     x,flag = gmres(A, b, x0=zeros(A.shape[0]), tol=1e-16, 
maxiter=maxiter, callback=callback)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/iterative.py", 
line 387, in gmres
     work  = np.zeros((6+restrt)*n,dtype=x.dtype)
TypeError: unsupported operand type(s) for +: 'int' and 
'NoneType'

======================================================================
ERROR: test whether all methods converge
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py", 
line 99, in test_convergence
     x, info = solver(A, b, x0=x0, tol=tol)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/iterative.py", 
line 387, in gmres
     work  = np.zeros((6+restrt)*n,dtype=x.dtype)
TypeError: unsupported operand type(s) for +: 'int' and 
'NoneType'

======================================================================
ERROR: test whether maxiter is respected
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py", 
line 81, in test_maxiter
     x, info = solver(A, b, x0=x0, tol=tol, maxiter=3, 
callback=callback)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/iterative.py", 
line 387, in gmres
     work  = np.zeros((6+restrt)*n,dtype=x.dtype)
TypeError: unsupported operand type(s) for +: 'int' and 
'NoneType'

======================================================================
ERROR: test whether all methods accept a trivial 
preconditioner
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py", 
line 132, in test_precond
     x, info = solver(A, b, M=precond, x0=x0, tol=tol)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/isolve/iterative.py", 
line 387, in gmres
     work  = np.zeros((6+restrt)*n,dtype=x.dtype)
TypeError: unsupported operand type(s) for +: 'int' and 
'NoneType'



More information about the SciPy-Dev mailing list