[Numpy-svn] r4819 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Fri Feb 22 19:14:41 CST 2008


Author: oliphant
Date: 2008-02-22 19:14:40 -0600 (Fri, 22 Feb 2008)
New Revision: 4819

Modified:
   trunk/numpy/lib/function_base.py
Log:
Fix bug reported by Debian package maintainer.

Modified: trunk/numpy/lib/function_base.py
===================================================================
--- trunk/numpy/lib/function_base.py	2008-02-22 22:42:06 UTC (rev 4818)
+++ trunk/numpy/lib/function_base.py	2008-02-23 01:14:40 UTC (rev 4819)
@@ -375,7 +375,7 @@
                 n = add.reduce(a*w, axis)
                 d = add.reduce(w, axis)
             elif wsh == (ash[axis],):
-                ni = ash[axis]
+                ni = len(ash)
                 r = [newaxis]*ni
                 r[axis] = slice(None, None, 1)
                 w1 = eval("w["+repr(tuple(r))+"]*ones(ash, float)")



More information about the Numpy-svn mailing list