[Numpy-discussion] Added atleast_nd, request for clarification/cleanup of atleast_3d

Juan Nunez-Iglesias jni.soma at gmail.com
Wed Jul 6 15:01:44 EDT 2016

at_leastnd would be useful for nd image processing in a very analogous way
to how at_least2d is used by scikit-image, assuming it prepends. The
at_least3d choice is baffling, seems analogous to the 0.5-based indexing
presented at PyCon, and should be "fun" to deprecate. =P

On 6 July 2016 at 2:57:57 PM, Eric Firing (efiring at hawaii.edu) wrote:

On 2016/07/06 8:25 AM, Benjamin Root wrote:
> I wouldn't have the keyword be "where", as that collides with the notion
> of "where" elsewhere in numpy.

Agreed. Maybe "side"?

(I find atleast_1d and atleast_2d to be very helpful for handling
inputs, as Ben noted; I'm skeptical as to the value of atleast_3d and

NumPy-Discussion mailing list
NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160706/5ffdeb2f/attachment.html>

More information about the NumPy-Discussion mailing list