[Scipy-svn] r2178 - in trunk/Lib/io: . tests/data

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Aug 25 04:09:05 EDT 2006


Author: stefan
Date: 2006-08-25 03:08:57 -0500 (Fri, 25 Aug 2006)
New Revision: 2178

Added:
   trunk/Lib/io/tests/data/testvec_4_GLNX86.mat
Modified:
   trunk/Lib/io/mio.py
Log:
Fix loadmat for v4 files and add test.


Modified: trunk/Lib/io/mio.py
===================================================================
--- trunk/Lib/io/mio.py	2006-08-23 11:06:18 UTC (rev 2177)
+++ trunk/Lib/io/mio.py	2006-08-25 08:08:57 UTC (rev 2178)
@@ -8,7 +8,8 @@
 import zlib
 
 from numpy import array, asarray, empty, obj2sctype, product, reshape, \
-    squeeze, transpose, zeros, vstack, ndarray, shape, diff, where, uint8
+    squeeze, transpose, zeros, vstack, ndarray, shape, diff, where, uint8, \
+    atleast_1d
 import numpyio
 
 try:
@@ -113,7 +114,7 @@
         self.file.seek(*args)
 
     def tell(self):
-        self.file.tell()
+        return self.file.tell()
         
     def raw_read(self, size=-1):
         """Read raw bytes from file as string."""

Added: trunk/Lib/io/tests/data/testvec_4_GLNX86.mat
===================================================================
(Binary files differ)


Property changes on: trunk/Lib/io/tests/data/testvec_4_GLNX86.mat
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the Scipy-svn mailing list