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

numpy-svn@scip... numpy-svn@scip...
Tue Jan 22 13:44:19 CST 2008


Author: oliphant
Date: 2008-01-22 13:44:13 -0600 (Tue, 22 Jan 2008)
New Revision: 4743

Modified:
   trunk/numpy/lib/function_base.py
Log:
Fix bug in ticket #592 for non-array sequence bin arguments.

Modified: trunk/numpy/lib/function_base.py
===================================================================
--- trunk/numpy/lib/function_base.py	2008-01-22 10:26:31 UTC (rev 4742)
+++ trunk/numpy/lib/function_base.py	2008-01-22 19:44:13 UTC (rev 4743)
@@ -151,6 +151,7 @@
             mx += 0.5
         bins = linspace(mn, mx, bins, endpoint=False)
     else:
+        bins = asarray(bins)
         if(any(bins[1:]-bins[:-1] < 0)):
             raise AttributeError, 'bins must increase monotonically.'
 



More information about the Numpy-svn mailing list