Skip to content

Commit 62927cd

Browse files
authored
Merge pull request #161 from PyLops/fix-laplacian-warning
Fix Warning in Laplacian
2 parents c6b3dfc + 9305fb6 commit 62927cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylops_mpi/basicoperators/Laplacian.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from typing import Tuple
22
import numpy as np
3-
from numpy.core.multiarray import normalize_axis_index
43
from mpi4py import MPI
54

65
from pylops.utils.typing import DTypeLike, InputDimsLike
76
from pylops.basicoperators import SecondDerivative
7+
from pylops.utils.backend import get_normalize_axis_index
88

99
from pylops_mpi import DistributedArray, MPILinearOperator, Partition
1010
from pylops_mpi.DistributedArray import local_split
@@ -75,7 +75,7 @@ def __init__(self, dims: InputDimsLike,
7575
base_comm: MPI.Comm = MPI.COMM_WORLD,
7676
dtype: DTypeLike = np.float64):
7777
self.dims = dims
78-
axes = tuple(normalize_axis_index(ax, len(dims)) for ax in axes)
78+
axes = tuple(get_normalize_axis_index()(ax, len(dims)) for ax in axes)
7979
if not (len(axes) == len(weights) == len(sampling)):
8080
raise ValueError("axes, weights, and sampling have different size")
8181
self.axes = axes

0 commit comments

Comments
 (0)