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

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Nov 10 09:29:06 CST 2006


Author: matthew.brett at gmail.com
Date: 2006-11-10 09:29:03 -0600 (Fri, 10 Nov 2006)
New Revision: 2316

Modified:
   trunk/Lib/io/mio5.py
Log:
Fix numpy python 2.5 indexing oddness

Modified: trunk/Lib/io/mio5.py
===================================================================
--- trunk/Lib/io/mio5.py	2006-11-09 16:00:41 UTC (rev 2315)
+++ trunk/Lib/io/mio5.py	2006-11-10 15:29:03 UTC (rev 2316)
@@ -391,7 +391,7 @@
         self.obj_template = mat_struct()
         
     def get_raw_array(self):
-        namelength = self.read_element()
+        namelength = self.read_element()[0]
         # get field names
         names = self.read_element()
         splitnames = [names[i:i+namelength] for i in \



More information about the Scipy-svn mailing list