[Scipy-svn] r4408 - trunk/scipy/cluster

scipy-svn@scip... scipy-svn@scip...
Tue Jun 3 03:51:33 CDT 2008


Author: damian.eads
Date: 2008-06-03 03:51:31 -0500 (Tue, 03 Jun 2008)
New Revision: 4408

Modified:
   trunk/scipy/cluster/hierarchy.py
Log:
Fixed minor dtype conversion bug in hierarchy.linkage.

Modified: trunk/scipy/cluster/hierarchy.py
===================================================================
--- trunk/scipy/cluster/hierarchy.py	2008-06-03 07:48:54 UTC (rev 4407)
+++ trunk/scipy/cluster/hierarchy.py	2008-06-03 08:51:31 UTC (rev 4408)
@@ -452,7 +452,7 @@
     if not isinstance(method, str):
         raise TypeError("Argument 'method' must be a string.")
 
-    y = np.asarray(_convert_to_double(y))
+    y = _convert_to_double(np.asarray(y))
 
     s = y.shape
     if len(s) == 1:



More information about the Scipy-svn mailing list