1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From 3811404a2997af1b774cae0cfccccfd5a38c0572 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Erlend=20H=C3=A5rstad?= <erha@equinor.com>
Date: Wed, 21 Dec 2022 08:51:48 +0100
Subject: Replace numpy.int with int in test-case
numpy.int has been deprecated for some time, and as of 1.24.0 the
deprecation expired [1]. Numpy recommends to replace it with either
Python's int or np.int_ [2].
[1] https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated
[2] https://numpy.org/doc/stable/release/1.24.0-notes.html#expired-deprecations
---
python/test/segy.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/test/segy.py b/python/test/segy.py
index a180d90..376f816 100644
--- a/python/test/segy.py
+++ b/python/test/segy.py
@@ -1075,7 +1075,7 @@ def test_assign_all_traces(small):
def test_traceaccess_from_array():
- a = np.arange(10, dtype=np.int)
+ a = np.arange(10, dtype=int)
b = np.arange(10, dtype=np.int32)
c = np.arange(10, dtype=np.int64)
d = np.arange(10, dtype=np.intc)
--
2.30.2
|