diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-03-26 11:30:23 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-03-28 22:23:14 +0100 |
commit | 17466ad1839718c091c629bb647e881b7922a148 (patch) | |
tree | 05335c2935024943fe6913f7d0982603b17de4e6 /numpy/lib/function_base.py | |
parent | e3ed705e5d91b584e9191a20f3a4780d354271ff (diff) | |
download | numpy-17466ad1839718c091c629bb647e881b7922a148.tar.gz |
MAINT: Rename _validate_axis, and document it
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 5b3af311b..2e6de9ec7 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1680,7 +1680,7 @@ def gradient(f, *varargs, **kwargs): if axes is None: axes = tuple(range(N)) else: - axes = _nx._validate_axis(axes, N) + axes = _nx.normalize_axis_tuple(axes, N) len_axes = len(axes) n = len(varargs) @@ -3972,7 +3972,7 @@ def _ureduce(a, func, **kwargs): if axis is not None: keepdim = list(a.shape) nd = a.ndim - axis = _nx._validate_axis(axis, nd) + axis = _nx.normalize_axis_tuple(axis, nd) for ax in axis: keepdim[ax] = 1 |