[SciPy-user] bug in diagsvd
pearu at scipy.org
Tue Jun 1 10:46:27 CDT 2004
On Tue, 1 Jun 2004, Carlo Mattoni wrote:
> I'm not sure if this is the best place to report a bug,
Maybe scipy-dev would be more appropiate (until scipy roundup will be
usable) than scipy-user mailing list but that's ok too, especially when
bug reports are constructive.
but I have
> found one in the function diagsvd in decomp.py.
> Python 2.3 (#1, Sep 13 2003, 00:49:11)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import scipy
> >>> scipy.linalg.diagsvd( scipy.array( [ 1, 0, 0 ] ), 3, 3 )
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/scipy/linalg/decomp.py",
> line 297, in diagsvd
> part = diag(s)
> NameError: global name 'diag' is not defined
> It appears that the problem is that the definition of diagsvd does not
> properly prepend scipy function calls with scip_base as all of the other
> functions in decomp.py do.
Thanks for the patch, this is now fixed in CVS.
More information about the SciPy-user