Re: [Numpy-discussion] R: R: R: fast numpy.fromfile skipping data chunks

2013-03-13 Thread Nathaniel Smith
On Wed, Mar 13, 2013 at 2:46 PM, Andrea Cimatoribus wrote: >>Indeed, but that offset "it should be a multiple of the byte-size of dtype" >>as the help says. > > My mistake, sorry, even if the help says so, it seems that this is not the > case in the actual code. Still, the problem with the size

[Numpy-discussion] R: R: R: fast numpy.fromfile skipping data chunks

2013-03-13 Thread Andrea Cimatoribus
>Indeed, but that offset "it should be a multiple of the byte-size of dtype" as >the help says. My mistake, sorry, even if the help says so, it seems that this is not the case in the actual code. Still, the problem with the size of the available data (which is not necessarily a multiple of dtyp

[Numpy-discussion] R: R: R: fast numpy.fromfile skipping data chunks

2013-03-13 Thread Andrea Cimatoribus
On top of that, there is another issue: it can be that the data available itself is not a multiple of dtype, since there can be write errors at the end of the file, and I don't know how to deal with that. Da: numpy-discussion-boun...@scipy.org [numpy-discu