diff options
author | mattip <matti.picus@gmail.com> | 2022-07-20 09:28:42 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2022-07-20 09:28:42 +0300 |
commit | 20bd00b0bfef5de4046d31a04b84f0a5a4007cdf (patch) | |
tree | 7b7ef991c2a8c7f493e14d6ea05f3336a255429c /numpy/ma/extras.py | |
parent | 3321bc59ca5e47a8d8677fa4d1a9af37d570a835 (diff) | |
download | numpy-20bd00b0bfef5de4046d31a04b84f0a5a4007cdf.tar.gz |
Revert "BUG: Fix masked median multiple masked arrays (#21999)"
This reverts commit 6b8d55e66e532d66e1701ad039b4cda306839b3f.
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index b7ff1adbc..d2986012b 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -723,10 +723,7 @@ def median(a, axis=None, out=None, overwrite_input=False, keepdims=False): fill_value=1e+20) """ - - a = np.ma.asarray(a) - - if a.mask is np.ma.nomask: + if not hasattr(a, 'mask'): m = np.median(getdata(a, subok=True), axis=axis, out=out, overwrite_input=overwrite_input, keepdims=keepdims) |