[Scipy-tickets] [SciPy] #1257: scipy.sparse.linalg.isolve.utils.make_system raises wrong error

SciPy Trac scipy-tickets@scipy....
Sat Sep 11 22:17:13 CDT 2010


#1257: scipy.sparse.linalg.isolve.utils.make_system raises wrong error
----------------------------------+-----------------------------------------
  Reporter:  klemm                |       Owner:  wnbell
      Type:  defect               |      Status:  closed
  Priority:  low                  |   Milestone:  0.9.0 
 Component:  scipy.sparse.linalg  |     Version:  0.7.0 
Resolution:  fixed                |    Keywords:  utils 
----------------------------------+-----------------------------------------
Changes (by warren.weckesser):

  * status:  new => closed
  * resolution:  => fixed


Old description:

> Just a tiny thing:
>
> scipy.sparse.linalg.utils.make_system(zeros((5,3)),None,zeros(4),zeros(4))
>
> raises not as expected a ValueError, because the first matrix is not
> square, but a NameError, because the parameter shape in the error message
> is undefined.

New description:

 Just a tiny thing:

 scipy.sparse.linalg.utils.make_system(zeros((5,3)),None,zeros(4),zeros(4))

 raises not as expected a ValueError, because the first matrix is not
 square, but a NameError, because the parameter shape in the error message
 is undefined.

--

Comment:

 Fixed in r6780.

 Thanks for reporting the problem!

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


More information about the Scipy-tickets mailing list