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

Joseph Fox-Rabinovitz jfoxrabinovitz at gmail.com
Wed Jul 6 15:15:42 EDT 2016


On Wed, Jul 6, 2016 at 3:01 PM, Juan Nunez-Iglesias <jni.soma at gmail.com> wrote:
> 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

at_leastnd prepends by default, has an option to append instead and
certainly does not 0.5-pend under any circumstances. `np.swapaxes` and
`np.rollaxis` are there for a reason. If atleast_3d is deprecated
because of its funky behavior, atleast_nd may be useful replacement.

    -Joe



More information about the NumPy-Discussion mailing list