diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-05-17 15:05:19 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-05-17 15:05:19 +0100 |
commit | c2cbf13ac4df693cec70f6949efdc386c791d1f9 (patch) | |
tree | e2ce73b1532d14201e0d76eed24c90075e99e39d /numpy/lib/function_base.py | |
parent | bd8be5417632c019dbc1d36400052805f95a372c (diff) | |
download | numpy-c2cbf13ac4df693cec70f6949efdc386c791d1f9.tar.gz |
MAINT: Remove a pointless if
The `add` ufunc is happy to handle `out=None` by itself
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index dea01d12d..12ba3b1c6 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3975,10 +3975,7 @@ def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, x1 = x1.squeeze(0) x2 = x2.squeeze(0) - if out is not None: - r = add(x1, x2, out=out) - else: - r = add(x1, x2) + r = add(x1, x2, out=out) if np.any(n): if zerod: |