[Scipy-svn] r3467 - trunk/scipy/io
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Oct 27 13:09:11 EDT 2007
Author: wnbell
Date: 2007-10-27 12:09:07 -0500 (Sat, 27 Oct 2007)
New Revision: 3467
Modified:
trunk/scipy/io/mio4.py
Log:
cast index arrays to integer type
Modified: trunk/scipy/io/mio4.py
===================================================================
--- trunk/scipy/io/mio4.py 2007-10-26 23:26:11 UTC (rev 3466)
+++ trunk/scipy/io/mio4.py 2007-10-27 17:09:07 UTC (rev 3467)
@@ -166,7 +166,7 @@
res = self.read_array()
tmp = res[:-1,:]
dims = res[-1,0:2]
- ij = N.transpose(tmp[:,0:2]) - 1 # for 1-based indexing
+ ij = N.transpose(tmp[:,0:2]).astype('i') - 1 # for 1-based indexing
vals = tmp[:,2]
if res.shape[1] == 4:
vals = vals + res[:-1,3] * 1j
More information about the Scipy-svn
mailing list