Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Ralf Gommers
On Fri, Feb 12, 2021 at 3:32 AM Juan Nunez-Iglesias wrote: > both napari and scikit-image use atleast_ a few times. I don’t have many > examples of where I used nd because it didn’t exist. But I have the very > distinct impression of needing it repeatedly. In some places, I’ve used > `np.broadcas

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Eric Wieser
> There might be some linear algebraic reason why those axis positions make sense, but I’m not aware of it... My guess is that the historical motivation was to allow grayscale `(H, W)` images to be converted into `(H, W, 1)` images so that they can be broadcast against `(H, W, 3)` RGB images. Eri

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Sebastian Berg
On Fri, 2021-02-12 at 11:13 +0100, Ralf Gommers wrote: > On Fri, Feb 12, 2021 at 3:32 AM Juan Nunez-Iglesias > > wrote: > > > both napari and scikit-image use atleast_ a few times. I don’t have > > many > > examples of where I used nd because it didn’t exist. But I have the > > very > > distinct

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Robert Kern
On Fri, Feb 12, 2021 at 5:15 AM Eric Wieser wrote: > > There might be some linear algebraic reason why those axis positions > make sense, but I’m not aware of it... > > My guess is that the historical motivation was to allow grayscale `(H, W)` > images to be converted into `(H, W, 1)` images so t

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Joseph Fox-Rabinovitz
On Fri, Feb 12, 2021, 09:32 Robert Kern wrote: > On Fri, Feb 12, 2021 at 5:15 AM Eric Wieser > wrote: > >> > There might be some linear algebraic reason why those axis positions >> make sense, but I’m not aware of it... >> >> My guess is that the historical motivation was to allow grayscale `(H,

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Robert Kern
On Fri, Feb 12, 2021 at 9:45 AM Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > > > On Fri, Feb 12, 2021, 09:32 Robert Kern wrote: > >> On Fri, Feb 12, 2021 at 5:15 AM Eric Wieser >> wrote: >> >>> > There might be some linear algebraic reason why those axis positions >>> make sense, b

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Sebastian Berg
On Fri, 2021-02-12 at 10:08 -0500, Robert Kern wrote: > On Fri, Feb 12, 2021 at 9:45 AM Joseph Fox-Rabinovitz < > jfoxrabinov...@gmail.com> wrote: > > > > > > > On Fri, Feb 12, 2021, 09:32 Robert Kern > > wrote: > > > > > On Fri, Feb 12, 2021 at 5:15 AM Eric Wieser < > > > wieser.eric+nu...@gm

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Ralf Gommers
On Fri, Feb 12, 2021 at 7:25 PM Sebastian Berg wrote: > On Fri, 2021-02-12 at 10:08 -0500, Robert Kern wrote: > > On Fri, Feb 12, 2021 at 9:45 AM Joseph Fox-Rabinovitz < > > jfoxrabinov...@gmail.com> wrote: > > > > > > > > > > > On Fri, Feb 12, 2021, 09:32 Robert Kern > > > wrote: > > > > > > >

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Robert Kern
On Fri, Feb 12, 2021 at 1:47 PM Ralf Gommers wrote: > > On Fri, Feb 12, 2021 at 7:25 PM Sebastian Berg > wrote: > >> On Fri, 2021-02-12 at 10:08 -0500, Robert Kern wrote: >> > On Fri, Feb 12, 2021 at 9:45 AM Joseph Fox-Rabinovitz < >> > jfoxrabinov...@gmail.com> wrote: >> > >> > > >> > > >> > >

[Numpy-discussion] Documentation Team meeting - Monday February 15

2021-02-12 Thread Melissa Mendonça
Hi all! Our next Documentation Team meeting will be on *Monday, February 15* at ***4PM UTC***. All are welcome - you don't need to already be a contributor to join. If you have questions or are curious about what we're doing, we'll be happy to meet you! If you wish to join on Zoom, use this link:

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Ralf Gommers
On Fri, Feb 12, 2021 at 9:21 PM Robert Kern wrote: > On Fri, Feb 12, 2021 at 1:47 PM Ralf Gommers > wrote: > >> >> On Fri, Feb 12, 2021 at 7:25 PM Sebastian Berg < >> sebast...@sipsolutions.net> wrote: >> >>> On Fri, 2021-02-12 at 10:08 -0500, Robert Kern wrote: >>> > On Fri, Feb 12, 2021 at 9:4

Re: [Numpy-discussion] ENH: Proposal to add atleast_nd function

2021-02-12 Thread Robert Kern
On Fri, Feb 12, 2021 at 3:42 PM Ralf Gommers wrote: > > On Fri, Feb 12, 2021 at 9:21 PM Robert Kern wrote: > >> On Fri, Feb 12, 2021 at 1:47 PM Ralf Gommers >> wrote: >> >>> >>> On Fri, Feb 12, 2021 at 7:25 PM Sebastian Berg < >>> sebast...@sipsolutions.net> wrote: >>> Right, my initi