From 54b68dda8b29e3745b6b0da5f1d6a2b53f29e291 Mon Sep 17 00:00:00 2001 From: Joseph Fox-Rabinovitz Date: Mon, 11 Jul 2016 10:39:23 -0400 Subject: BUG: Fixed masked array behavior for scalar inputs to np.ma.atleast_*d --- numpy/core/shape_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core') diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 31d7d1c03..2b5110473 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -146,7 +146,7 @@ def atleast_3d(*arys): >>> x = np.arange(12.0).reshape(4,3) >>> np.atleast_3d(x).shape (4, 3, 1) - >>> np.atleast_3d(x).base is x + >>> np.atleast_3d(x).base is x.base # x is a reshape, so not base itself True >>> for arr in np.atleast_3d([1, 2], [[1, 2]], [[[1, 2]]]): -- cgit v1.2.1