[SciPy-user] Is scipy.io.numpyio.fread working?

Jose Luis Gomez Dans josegomez@gmx....
Wed Nov 21 10:25:43 CST 2007


-------- Original-Nachricht --------
> a = scipy.io.numpyio.fread(fp, 2400*2400,'f',byteswap=1)
> This bombs with a     
> <type 'exceptions.TypeError'>: fread() takes no keyword arguments

The problem might be in the docstring. If I just do 
a = scipy.io.numpyio.fread(fp, 2400*2400,'f',byteswap=1).byteswap()
it works perfectly. However, the docstring appears to be from an older version of scipy where byteswapping was indeed part of fread.

Is it a bug?
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

More information about the SciPy-user mailing list