[Numpy-discussion] Re: Allow for callable in indexing

2021-11-29 Thread Aaron Meurer
On Mon, Nov 29, 2021 at 9:30 AM Sebastian Berg wrote: > > On Thu, 2021-11-25 at 18:16 -0600, Juan Nunez-Iglesias wrote: > > I have to say I like this! Together with partial functions / toolz > > currying [1] it could make for some rather elegant code: > > > > result = gaussian_filter(image)[greate

[Numpy-discussion] Re: Allow for callable in indexing

2021-11-29 Thread Sebastian Berg

[Numpy-discussion] Re: Allow for callable in indexing

2021-11-25 Thread Juan Nunez-Iglesias
I have to say I like this! Together with partial functions / toolz currying [1] it could make for some rather elegant code: result = gaussian_filter(image)[greater_than(t)] Juan. ..[1]: https://toolz.readthedocs.io/en/latest/curry.html On Wed, 24 Nov 2021, at 9:37 AM, cameron.pinne...@gmail.co