summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-01-26 18:50:46 -0800
committerEric Wieser <wieser.eric@gmail.com>2018-01-26 18:50:46 -0800
commite164117afe9712023f38328f9327355aeff49a87 (patch)
tree71343b62a07526f6bbb0af46573724a17024b7a0 /numpy/ma/core.py
parent88839ead9e4803586a9ef4715cb54f5028a17c61 (diff)
downloadnumpy-e164117afe9712023f38328f9327355aeff49a87.tar.gz
MAINT: Remove unused code path for applying maskedarray domains to ufunc with nin>2
There are no native ufuncs with this configuration. Additionally, if there were, it would make more since for the domaining function to receive all the arguments, not reduce them pairwise.
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r--numpy/ma/core.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 56c761da1..9223c5705 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -3037,12 +3037,8 @@ class MaskedArray(ndarray):
domain = ufunc_domain.get(func, None)
if domain is not None:
# Take the domain, and make sure it's a ndarray
- if len(input_args) > 2:
- with np.errstate(divide='ignore', invalid='ignore'):
- d = filled(reduce(domain, input_args), True)
- else:
- with np.errstate(divide='ignore', invalid='ignore'):
- d = filled(domain(*input_args), True)
+ with np.errstate(divide='ignore', invalid='ignore'):
+ d = filled(domain(*input_args), True)
if d.any():
# Fill the result where the domain is wrong