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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion