[SciPy-User] scipy.io.matlab.loadmat error
Matthew Brett
matthew.brett at gmail.com
Mon May 31 22:36:04 EDT 2010
Hi,
2010/5/31 Fernando Guimarães Ferreira <fernando.ferreira at poli.ufrj.br>:
> In the last email I meant python 2.6.5
> The mat file is attached... This is a test, there is just an array 'x' with
> few elements..
It works for me with 0.7.2. I wonder what's going on?
[mb312 at blair ~/tmp]$ uname -a
Darwin blair 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09
PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
[mb312 at blair ~/tmp]$ ipython
Python 2.6.4 (r264:75706, Dec 22 2009, 14:55:30)
Type "copyright", "credits" or "license" for more information.
IPython 0.11.alpha1.bzr.r1223 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import scipy
In [2]: scipy.__version__
Out[2]: '0.7.2'
In [3]: import scipy.io.matlab
In [4]: scipy.io.matlab.loadmat('/Users/mb312/Downloads/teste.mat')
/Users/mb312/usr/local/lib/python2.6/site-packages/scipy/io/matlab/mio.py:84:
FutureWarning: Using struct_as_record default value (False) This will
change to True in future versions
return MatFile5Reader(byte_stream, **kwargs)
Out[4]:
{'__globals__': [],
'__header__': 'MATLAB 5.0 MAT-file, Platform: MACI, Created on: Mon
May 31 21:06:09 2010',
'__version__': '1.0',
'x': array([[0, 1, 3, 0, 1, 3, 4, 5, 7, 7]], dtype=uint8)}
Best,
Matthew
More information about the SciPy-User
mailing list