[Scipy-svn] r2494 - trunk/Lib/io

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Jan 5 23:59:36 CST 2007


Author: wnbell
Date: 2007-01-05 23:59:18 -0600 (Fri, 05 Jan 2007)
New Revision: 2494

Modified:
   trunk/Lib/io/mmio.py
Log:
Fixed small bug in io for sparse matrices



Modified: trunk/Lib/io/mmio.py
===================================================================
--- trunk/Lib/io/mmio.py	2007-01-05 23:47:21 UTC (rev 2493)
+++ trunk/Lib/io/mmio.py	2007-01-06 05:59:18 UTC (rev 2494)
@@ -266,7 +266,7 @@
             raise ValueError,'unknown matrix type ' + `type(a)`
         rows,cols = a.shape
         entries = a.getnnz()
-        typecode = a.gettypecode()
+        typecode = a.dtype.char
 
     if precision is None:
         if typecode in 'fF':



More information about the Scipy-svn mailing list