We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24848c4 commit 45b5fbcCopy full SHA for 45b5fbc
pylops/basicoperators/restriction.py
@@ -5,7 +5,14 @@
5
6
import numpy as np
7
import numpy.ma as np_ma
8
-from numpy.lib.array_utils import normalize_axis_index
+
9
+# need to check numpy version since normalize_axis_index will be
10
+# soon moved from numpy.core.multiarray to from numpy.lib.array_utils
11
+np_version = np.__version__.split(".")
12
+if int(np_version[0]) < 2:
13
+ from numpy.core.multiarray import normalize_axis_index
14
+else:
15
+ from numpy.lib.array_utils import normalize_axis_index
16
17
from pylops import LinearOperator
18
from pylops.utils._internal import _value_or_sized_to_tuple
0 commit comments