Re: [Numpy-discussion] np.gradient

2014-10-18 Thread Charles R Harris
On Sat, Oct 18, 2014 at 7:17 PM, Nathaniel Smith wrote: > Okay! I think I now actually understand what was going on with > np.gradient! The discussion has been pretty confused, and I'm worried > that what's in master right now is not the right solution, which is a > problem because we're supposed

Re: [Numpy-discussion] Add an axis argument to generalized ufuncs?

2014-10-18 Thread Nathaniel Smith
On Sat, Oct 18, 2014 at 5:56 AM, Stephan Hoyer wrote: > Here are my initial thoughts on the syntax: > > (1) Generally speaking, I think the "nested tuple" syntax (e.g., axis=[(0, > 1), (2, 3)]) would be most congruous with the axis arguments numpy already > supports. > > (2) For gufuncs with simpl

Re: [Numpy-discussion] np.gradient

2014-10-18 Thread Nathaniel Smith
On Sun, Oct 19, 2014 at 2:23 AM, Matthew Brett wrote: > Hi, > > On Sat, Oct 18, 2014 at 6:17 PM, Nathaniel Smith wrote: >> Okay! I think I now actually understand what was going on with >> np.gradient! The discussion has been pretty confused, and I'm worried >> that what's in master right now is

Re: [Numpy-discussion] np.gradient

2014-10-18 Thread Matthew Brett
Hi, On Sat, Oct 18, 2014 at 6:17 PM, Nathaniel Smith wrote: > Okay! I think I now actually understand what was going on with > np.gradient! The discussion has been pretty confused, and I'm worried > that what's in master right now is not the right solution, which is a > problem because we're supp

[Numpy-discussion] np.gradient

2014-10-18 Thread Nathaniel Smith
Okay! I think I now actually understand what was going on with np.gradient! The discussion has been pretty confused, and I'm worried that what's in master right now is not the right solution, which is a problem because we're supposed to cut 1.9.1 tomorrow. Background: np.gradient computes gradien

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Artur Bercik
Dear Julian Taylor Thank you very much, I really appreciated your codes. On Sat, Oct 18, 2014 at 9:28 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 18.10.2014 14:14, Artur Bercik wrote: > > > > > > On Sat, Oct 18, 2014 at 9:00 PM, Artur Bercik > > w

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Julian Taylor
On 18.10.2014 14:14, Artur Bercik wrote: > > > On Sat, Oct 18, 2014 at 9:00 PM, Artur Bercik > wrote: > > > > On Sat, Oct 18, 2014 at 8:28 PM, Julian Taylor > > wrote: > > On 18.10.2014 07:58, Artur Bercik

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Artur Bercik
On Sat, Oct 18, 2014 at 9:00 PM, Artur Bercik wrote: > > > On Sat, Oct 18, 2014 at 8:28 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 18.10.2014 07:58, Artur Bercik wrote: >> > Dear Python and Numpy Users: >> > >> > My data are in the form of '32-bit unsigned integer' as fol

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Artur Bercik
On Sat, Oct 18, 2014 at 8:28 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 18.10.2014 07:58, Artur Bercik wrote: > > Dear Python and Numpy Users: > > > > My data are in the form of '32-bit unsigned integer' as follows: > > > > myData = np.array([1073741824, 1073741877, 1073742657,

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Julian Taylor
On 18.10.2014 07:58, Artur Bercik wrote: > Dear Python and Numpy Users: > > My data are in the form of '32-bit unsigned integer' as follows: > > myData = np.array([1073741824, 1073741877, 1073742657, 1073742709, > 1073742723, 1073755137, 1073755189,1073755969],dtype=np.int32) > > I want to get t