Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ndfilters/_convolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def convolve(
if axis is None:
axis = tuple(range(array.ndim))
axis = np.array(axis)
axis = np.core.numeric.normalize_axis_tuple(~axis, ndim=array.ndim)
axis = np.lib.array_utils.normalize_axis_tuple(~axis, ndim=array.ndim)
axis = ~np.array(axis)

shape_kernel = list(kernel.shape)
Expand Down
2 changes: 1 addition & 1 deletion ndfilters/_tests/test_convolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_convolve(
axis_ = axis
if axis_ is None:
axis_ = np.arange(array.ndim)
axis_ = np.core.numeric.normalize_axis_tuple(axis_, ndim=array.ndim)
axis_ = np.lib.array_utils.normalize_axis_tuple(axis_, ndim=array.ndim)

axis_orthogonal = [ax for ax in range(array.ndim) if ax not in axis_]

Expand Down
2 changes: 1 addition & 1 deletion ndfilters/_tests/test_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_mean_filter(
axis_normalized = tuple(range(array.ndim))
else:
try:
axis_normalized = np.core.numeric.normalize_axis_tuple(
axis_normalized = np.lib.array_utils.normalize_axis_tuple(
axis, ndim=array.ndim
)
except np.exceptions.AxisError:
Expand Down
2 changes: 1 addition & 1 deletion ndfilters/_tests/test_median.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_median_filter(
axis_normalized = tuple(range(array.ndim))
else:
try:
axis_normalized = np.core.numeric.normalize_axis_tuple(
axis_normalized = np.lib.array_utils.normalize_axis_tuple(
axis, ndim=array.ndim
)
except np.exceptions.AxisError:
Expand Down
2 changes: 1 addition & 1 deletion ndfilters/_tests/test_trimmed_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_trimmed_mean_filter(
axis_normalized = tuple(range(array.ndim))
else:
try:
axis_normalized = np.core.numeric.normalize_axis_tuple(
axis_normalized = np.lib.array_utils.normalize_axis_tuple(
axis, ndim=array.ndim
)
except np.exceptions.AxisError:
Expand Down
2 changes: 1 addition & 1 deletion ndfilters/_tests/test_variance.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_variance_filter(
axis_normalized = tuple(range(array.ndim))
else:
try:
axis_normalized = np.core.numeric.normalize_axis_tuple(
axis_normalized = np.lib.array_utils.normalize_axis_tuple(
axis, ndim=array.ndim
)
except np.exceptions.AxisError:
Expand Down