[Numpy-discussion] fromfile croaking on windows
Albert Strasheim
fullung at gmail.com
Fri Jun 23 09:42:40 EDT 2006
Hello all
Travis Oliphant wrote:
> Mathew Yeates wrote:
> > when I try and load a file with numpy.fromfile I keep getting a message
> ....
> > 7245092 items requested but only 3899 read. Its always the same number
> read.
> >
> >
> Which platform are you on? Could you show exactly how you are calling
> the function.
>
> There were some reports of strange behavior on Windows that may be
> related to file-locking. I'm just not sure at this point.
I did some experiments.
With my test file, this always fails:
y = N.fromfile('temp.dat', dtype=N.float64)
This works:
y = N.fromfile(file('temp.dat','rb'), dtype=N.float64)
More details in this ticket:
http://projects.scipy.org/scipy/numpy/ticket/103
I don't quite understand how file-locking can be causing these problems.
Travis, care to elaborate on what you think might be causing these problems?
Cheers,
Albert
More information about the NumPy-Discussion
mailing list