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.

[Numpy-discussion] Breaking up the umathmodule file.

2008-11-16 Thread Charles R Harris
Hi All, I thought I should run this by folks before doing the deed. I propose to break up the umathmodule file. Currently the umath module is put together from the following files: math_c99.inc.src ufuncobject.c umathmodule.c.src I propose: umath_funcs_c99.inc.src umath_funcs.inc.src umath_loop

Re: [Numpy-discussion] Indexing in Numpy vs. IDL?

2008-11-16 Thread Robert Kern
On Sun, Nov 16, 2008 at 17:30, Robert Kern <[EMAIL PROTECTED]> wrote: > So-called "advanced indexing" where the indices are boolean or integer > arrays will probably solve your problem, but we need more information > on what you mean by index_one. Sorry, I left out a sentence or two here. I also m

Re: [Numpy-discussion] Indexing in Numpy vs. IDL?

2008-11-16 Thread Robert Kern
On Sun, Nov 16, 2008 at 16:15, Jason Woolard <[EMAIL PROTECTED]> wrote: > hi all, > > I'm fairly new to Numpy and I've been trying to port over some IDL code > to become more familiar. I've been moderately successful with > numpy.where and numpy.compress to do some of things that were pretty > easy

[Numpy-discussion] Indexing in Numpy vs. IDL?

2008-11-16 Thread Jason Woolard
hi all, I'm fairly new to Numpy and I've been trying to port over some IDL code to become more familiar. I've been moderately successful with numpy.where and numpy.compress to do some of things that were pretty easy to do in IDL. I'm a bit confused about how the indexing of arrays works though

[Numpy-discussion] added nep for generalized ufuncs

2008-11-16 Thread Jarrod Millman
http://projects.scipy.org/scipy/numpy/browser/trunk/doc/neps/generalized-ufuncs.rst Please feel free to add to this or improve it as you see fit. Thanks, -- Jarrod Millman Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/