diff options
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 2a44397d7..781b25449 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -665,10 +665,10 @@ def _median(a, axis=None, out=None, overwrite_input=False): ind = np.meshgrid(*axes_grid, sparse=True, indexing='ij') # insert indices of low and high median ind.insert(axis, h - 1) - low = asorted[ind] + low = asorted[tuple(ind)] low._sharedmask = False ind[axis] = h - high = asorted[ind] + high = asorted[tuple(ind)] # duplicate high if odd number of elements so mean does nothing odd = counts % 2 == 1 if asorted.ndim == 1: |