summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorJoseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov>2016-07-11 10:39:23 -0400
committerJoseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov>2016-08-24 12:39:56 -0400
commit54b68dda8b29e3745b6b0da5f1d6a2b53f29e291 (patch)
tree4560f76441f5156ca418752cf26459a4b31ca7a3 /numpy/core
parentd92c75b46fa316a7711049c278bfb4d4f11b2349 (diff)
downloadnumpy-54b68dda8b29e3745b6b0da5f1d6a2b53f29e291.tar.gz
BUG: Fixed masked array behavior for scalar inputs to np.ma.atleast_*d
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/shape_base.py2
1 files changed, 1 insertions, 1 deletions
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]]]):