diff options
author | Tobias Pitters <tobias.pitters@gmail.com> | 2020-06-10 02:03:03 +0200 |
---|---|---|
committer | Tobias Pitters <tobias.pitters@gmail.com> | 2020-06-10 02:03:03 +0200 |
commit | 2c05353e8342c555604be78a640646bc01511208 (patch) | |
tree | 862dcd41b3dde58b146a0a899bbf422cbf1e2d6c /numpy/lib/function_base.py | |
parent | 961d1b6290ba474b213a189528fc9d45e210ecc3 (diff) | |
download | numpy-2c05353e8342c555604be78a640646bc01511208.tar.gz |
fix _scalar_or_0d in _lerp
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 645a77cdb..a3044f27d 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3877,7 +3877,7 @@ def _lerp(a, b, t, out=None): """ Linearly interpolate from a to b by a factor of t """ diff_b_a = subtract(b, a) - _scalar_or_0d = lambda x: np.isscalar(a) or np.ndim(x) == 0 + _scalar_or_0d = lambda x: np.isscalar(x) or np.ndim(x) == 0 if _scalar_or_0d(a) and _scalar_or_0d(b) and _scalar_or_0d(t): if t <= 0.5: return add(a, diff_b_a * t, out=out) |