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

2021-02-10 Thread Stephan Hoyer
On Wed, Feb 10, 2021 at 9:48 PM Juan Nunez-Iglesias wrote: > I totally agree with the namespace clutter concern, but honestly, I would > use `atleast_nd` with its `pos` argument (I might rename it to `position`, > `axis`, or `axis_position`) any day over `at_least{1,2,3}d`, for which I > had no i

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

2021-02-10 Thread Juan Nunez-Iglesias
I totally agree with the namespace clutter concern, but honestly, I would use `atleast_nd` with its `pos` argument (I might rename it to `position`, `axis`, or `axis_position`) any day over `at_least{1,2,3}d`, for which I had no idea where the new axes would end up. So, I’m in favour of includi

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

2021-02-10 Thread Sebastian Berg
On Wed, 2021-02-10 at 17:31 -0500, Joseph Fox-Rabinovitz wrote: > I've created PR#18386 to add a function called atleast_nd to numpy > and > numpy.ma. This would generalize the existing atleast_1d, atleast_2d, > and > atleast_3d functions. > > I proposed a similar idea about four and a half years

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

2021-02-10 Thread Joseph Fox-Rabinovitz
I've created PR#18386 to add a function called atleast_nd to numpy and numpy.ma. This would generalize the existing atleast_1d, atleast_2d, and atleast_3d functions. I proposed a similar idea about four and a half years ago: https://mail.python.org/pipermail/numpy-discussion/2016-July/075722.html,