Re: [Numpy-discussion] how to pipe into numpy arrays?

2012-10-25 Thread Dag Sverre Seljebotn
On 10/24/2012 09:00 PM, Michael Aye wrote: As numpy.fromfile seems to require full file object functionalities like seek, I can not use it with the sys.stdin pipe. So how could I stream a binary pipe directly into numpy? I can imagine storing the data in a string and use StringIO but the

Re: [Numpy-discussion] how to pipe into numpy arrays?

2012-10-25 Thread Dag Sverre Seljebotn
On 10/25/2012 08:17 AM, Dag Sverre Seljebotn wrote: On 10/24/2012 09:00 PM, Michael Aye wrote: As numpy.fromfile seems to require full file object functionalities like seek, I can not use it with the sys.stdin pipe. So how could I stream a binary pipe directly into numpy? I can imagine

[Numpy-discussion] how to pipe into numpy arrays?

2012-10-24 Thread Michael Aye
As numpy.fromfile seems to require full file object functionalities like seek, I can not use it with the sys.stdin pipe. So how could I stream a binary pipe directly into numpy? I can imagine storing the data in a string and use StringIO but the files are 3.6 GB large, just the binary, and that

Re: [Numpy-discussion] how to pipe into numpy arrays?

2012-10-24 Thread Benjamin Root
On Wed, Oct 24, 2012 at 3:00 PM, Michael Aye kmichael@gmail.com wrote: As numpy.fromfile seems to require full file object functionalities like seek, I can not use it with the sys.stdin pipe. So how could I stream a binary pipe directly into numpy? I can imagine storing the data in a