[Numpy-discussion] Re: Putting in `np.ma.ndenumerate` MaskedArray specific ndenumerate

2021-11-30 Thread Jouke Witteveen
On Thu, Nov 18, 2021 at 1:46 PM Jouke Witteveen wrote: > > On Wed, Nov 17, 2021 at 7:51 PM Andras Deak wrote: > > > > On Wed, Nov 17, 2021 at 7:39 PM Sebastian Berg > > wrote: > >> > >> Hi all, > >> > >> the `np.ndenumerate` does not work well for masked arrays (like many > >> main namespace fu

[Numpy-discussion] Re: Putting in `np.ma.ndenumerate` MaskedArray specific ndenumerate

2021-11-18 Thread Jouke Witteveen
On Wed, Nov 17, 2021 at 7:51 PM Andras Deak wrote: > > On Wed, Nov 17, 2021 at 7:39 PM Sebastian Berg > wrote: >> >> Hi all, >> >> the `np.ndenumerate` does not work well for masked arrays (like many >> main namespace functions, it simply ignores/drops the mask). >> >> There is a PR (https://git

[Numpy-discussion] Re: Putting in `np.ma.ndenumerate` MaskedArray specific ndenumerate

2021-11-17 Thread Stephan Hoyer
I think a separate ndenumerate() in the masked array namespace would make a lot of sense. This is much less risky than changing np.ndenumerate(). On Wed, Nov 17, 2021 at 11:54 AM Andras Deak wrote: > On Wed, Nov 17, 2021 at 8:35 PM Sebastian Berg > wrote: > >> On Wed, 2021-11-17 at 19:49 +0100,

[Numpy-discussion] Re: Putting in `np.ma.ndenumerate` MaskedArray specific ndenumerate

2021-11-17 Thread Andras Deak
On Wed, Nov 17, 2021 at 8:35 PM Sebastian Berg wrote: > On Wed, 2021-11-17 at 19:49 +0100, Andras Deak wrote: > > On Wed, Nov 17, 2021 at 7:39 PM Sebastian Berg > > > > wrote: > > > > > Hi all, > > > > > > the `np.ndenumerate` does not work well for masked arrays (like > > > many > > > main name

[Numpy-discussion] Re: Putting in `np.ma.ndenumerate` MaskedArray specific ndenumerate

2021-11-17 Thread Sebastian Berg
On Wed, 2021-11-17 at 19:49 +0100, Andras Deak wrote: > On Wed, Nov 17, 2021 at 7:39 PM Sebastian Berg > > wrote: > > > Hi all, > > > > the `np.ndenumerate` does not work well for masked arrays (like > > many > > main namespace functions, it simply ignores/drops the mask). > > > > There is a PR

[Numpy-discussion] Re: Putting in `np.ma.ndenumerate` MaskedArray specific ndenumerate

2021-11-17 Thread Andras Deak
On Wed, Nov 17, 2021 at 7:39 PM Sebastian Berg wrote: > Hi all, > > the `np.ndenumerate` does not work well for masked arrays (like many > main namespace functions, it simply ignores/drops the mask). > > There is a PR (https://github.com/numpy/numpy/pull/20020) to add a > version of it to `np.ma`