[SciPy-user] Re: io.loadmat
Robert Kern
kern at ugcs.caltech.edu
Tue Oct 14 09:03:07 EDT 2003
In article <3F8BC1BC.85CED77F__30309.4456474811$1066119230 at mecha.uni-stuttgart.de> you wrote:
[snip]
> from scipy import *
> file=open("matrizen_red.mat",'r')
> io.loadmat(file,appendmat=0)
>
> raceback (most recent call last):
> File "matlab.py", line 3, in ?
> io.loadmat(file,appendmat=0)
> File "/usr/local/lib/python2.1/site-packages/scipy/io/mio.py", line
> 348, in loadmat
> if os.sep in name:
> TypeError: 'in' or 'not in' needs sequence right argument
Use the filename as the first argument, not an open file object.
--
Robert Kern
kern at ugcs.caltech.edu
"In the fields of Hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the SciPy-User
mailing list