Re: [Numpy-discussion] difficulties with numpy.tofile()

2008-11-16 Thread Charles R Harris
On Sun, Nov 16, 2008 at 10:37 PM, Catherine Moroney < [EMAIL PROTECTED]> wrote: > Hello, > > I'm having problems writing a 2-dimensional numpy array out to a binary > file using the "tofile" method. The call to "tofile" appears to > succeed, > but when I check the length of the binary file I find

Re: [Numpy-discussion] difficulties with numpy.tofile()

2008-11-16 Thread Robert Kern
On Sun, Nov 16, 2008 at 23:37, Catherine Moroney <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having problems writing a 2-dimensional numpy array out to a binary > file using the "tofile" method. The call to "tofile" appears to > succeed, > but when I check the length of the binary file I find that

[Numpy-discussion] difficulties with numpy.tofile()

2008-11-16 Thread Catherine Moroney
Hello, I'm having problems writing a 2-dimensional numpy array out to a binary file using the "tofile" method. The call to "tofile" appears to succeed, but when I check the length of the binary file I find that it's longer than what is expected, given the calculation of nrows*ncolumns*nbytes.