[Scipy-tickets] [SciPy] #1283: raise ValueError, "matrix must be square (has shape %s)" % (M, N)

SciPy Trac scipy-tickets@scipy....
Fri Sep 17 06:36:01 CDT 2010


#1283: raise ValueError, "matrix must be square (has shape %s)" % (M,N)
--------------------------+-------------------------------------------------
 Reporter:  ropewe        |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:  0.9.0   
Component:  scipy.linalg  |     Version:  0.7.0   
 Keywords:                |  
--------------------------+-------------------------------------------------
 SciPy version 0.8.0:

  File "/usr/local/lib64/python2.6/site-
 packages/scipy/sparse/linalg/dsolve/linsolve.py", line 65, in spsolve
     raise ValueError, "matrix must be square (has shape %s)" % (M,N)
 TypeError: not all arguments converted during string formatting

 Should be:
 "matrix must be square (has shape (%s,%s))" % (M,N)

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


More information about the Scipy-tickets mailing list