diff options
author | Kerem HallaƧ <hallackerem@gmail.com> | 2020-04-25 22:18:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 22:18:42 +0300 |
commit | cadea53d822cf8e5c31ada659e49212bdceb3204 (patch) | |
tree | ec8215a1cf0244727af920873c31c32157ed59e6 | |
parent | 8f12bfb00776ca35b6e445843d665a7d195d7f95 (diff) | |
download | numpy-cadea53d822cf8e5c31ada659e49212bdceb3204.tar.gz |
Update numpy/lib/shape_base.py
Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
-rw-r--r-- | numpy/lib/shape_base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index c1b520f67..72a7f79d7 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -373,7 +373,9 @@ def apply_along_axis(func1d, axis, arr, *args, **kwargs): try: ind0 = next(inds) except StopIteration as e: - raise ValueError('Cannot apply_along_axis when any iteration dimensions are 0') from None + raise ValueError( + 'Cannot apply_along_axis when any iteration dimensions are 0' + ) from None res = asanyarray(func1d(inarr_view[ind0], *args, **kwargs)) # build a buffer for storing evaluations of func1d. |