[Numpy-discussion] fromfile croaking on windows
fullung at gmail.com
Fri Jun 23 09:42:40 EDT 2006
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
> 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)
y = N.fromfile(file('temp.dat','rb'), dtype=N.float64)
More details in this ticket:
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?
More information about the NumPy-Discussion