[SciPy-user] savemat not working in SciPy 0.4.6?

Albert Strasheim fullung at gmail.com
Wed Feb 22 09:04:32 EST 2006


Hello all

I'm trying to use the savemat function in SciPy 0.4.6.

The following code doesn't work:

from numpy import array
from scipy.io import savemat
savemat('foo.mat', {'x' : array([0])})

The traceback:

Traceback (most recent call last):
  File "frags.py", line 3, in ?
    savemat('foo.mat', {'x' : array([0])})
  File "C:\Python24\Lib\site-packages\scipy\io\mio.py", line 875, in savemat
    fid.fwrite(variable+'\x00','char')
  File "C:\Python24\Lib\site-packages\scipy\io\mio.py", line 223, in write
    numpyio.fwrite(self,count,data,mtype,bs)
numpyio.error: Does not support extended types.

Is anybody else experiencing this problem?

Regards

Albert




More information about the SciPy-User mailing list