Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Stéfan van der Walt
On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant tra...@continuum.io wrote: I could see these functions going into scipy.ndimage but again because they are not necessarily just image processing functions, and the fact that they are so simple, perhaps they are best put into NumPy itself. I'm

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Robert Jördens
On Tue, May 29, 2012 at 11:03 AM, Stéfan van der Walt ste...@sun.ac.za wrote: On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant tra...@continuum.io wrote: I could see these functions going into scipy.ndimage but again because they are not necessarily just image processing functions, and the

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Charles R Harris
On Tue, May 29, 2012 at 11:40 AM, Robert Jördens jord...@gmail.com wrote: On Tue, May 29, 2012 at 11:03 AM, Stéfan van der Walt ste...@sun.ac.za wrote: On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant tra...@continuum.io wrote: I could see these functions going into scipy.ndimage but

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Jerome Kieffer
On Tue, 29 May 2012 10:03:04 -0700 Stéfan van der Walt ste...@sun.ac.za wrote: On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant tra...@continuum.io wrote: I could see these functions going into scipy.ndimage but again because they are not necessarily just image processing functions, and the

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Robert Jördens
On Tue, May 29, 2012 at 12:06 PM, Charles R Harris charlesr.har...@gmail.com wrote: I'd like to see these functions is scipy somewhere. The function names aren't very descriptive and the one line summaries don't give a very good idea of what they do, so I think those bits could use improvement.

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-28 Thread Ralf Gommers
On Mon, May 28, 2012 at 7:58 PM, Travis Oliphant tra...@continuum.iowrote: I didn't see anyone respond to this, but looking over his simple and elegant solution it seems like a useful addition to the 2-d functions available in NumPy as it works with any 2-d array (image or matrix) and does a

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-28 Thread Travis Oliphant
On May 28, 2012, at 1:02 PM, Ralf Gommers wrote: On Mon, May 28, 2012 at 7:58 PM, Travis Oliphant tra...@continuum.io wrote: I didn't see anyone respond to this, but looking over his simple and elegant solution it seems like a useful addition to the 2-d functions available in NumPy as

[Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-03-07 Thread Robert Jördens
Hi everyone, I am proposing to add the the two following functions to numpy/lib/twodim_base.py: sum_angle() computes the sum of a 2-d array along an angled axis sum_polar() computes the sum of a 2-d array along radial lines or along azimuthal circles https://github.com/numpy/numpy/pull/230