Skip to content

Commit

Permalink
Update python/cucim/src/cucim/skimage/_vendored/_ndimage_util.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gigon Bae <[email protected]>
  • Loading branch information
grlee77 and gigony authored Jan 21, 2025
1 parent af2fce4 commit c366868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cucim/src/cucim/skimage/_vendored/_ndimage_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def _check_axes(axes, ndim):
elif cupy.isscalar(axes):
axes = (operator.index(axes),)
elif isinstance(axes, Iterable):
axes = tuple(operator.index(ax) for ax in axes)
for ax in axes:
axes = tuple(operator.index(ax) for ax in axes)
if ax < -ndim or ax > ndim - 1:
raise AxisError(f"specified axis: {ax} is out of range")
axes = tuple(ax % ndim if ax < 0 else ax for ax in axes)
Expand Down

0 comments on commit c366868

Please sign in to comment.