[Scipy-svn] r4789 - trunk/scipy/io/matlab

scipy-svn@scip... scipy-svn@scip...
Thu Oct 9 22:17:29 CDT 2008


Author: wnbell
Date: 2008-10-09 22:17:27 -0500 (Thu, 09 Oct 2008)
New Revision: 4789

Modified:
   trunk/scipy/io/matlab/mio4.py
Log:
(hopefully) fix ticket #736


Modified: trunk/scipy/io/matlab/mio4.py
===================================================================
--- trunk/scipy/io/matlab/mio4.py	2008-10-09 07:29:54 UTC (rev 4788)
+++ trunk/scipy/io/matlab/mio4.py	2008-10-10 03:17:27 UTC (rev 4789)
@@ -67,7 +67,7 @@
         ''' Read header, return matrix getter '''
         data = self.read_dtype(self.dtypes['header'])
         header = {}
-        header['name'] = self.read_ztstring(data['namlen'])
+        header['name'] = self.read_ztstring(int(data['namlen']))
         if data['mopt'] < 0 or  data['mopt'] > 5000:
             ValueError, 'Mat 4 mopt wrong format, byteswapping problem?'
         M,rest = divmod(data['mopt'], 1000)



More information about the Scipy-svn mailing list