From 978a11c0c450af098cc6359f52538d9caec7f05f Mon Sep 17 00:00:00 2001 From: Sveinung Rundhovde Date: Wed, 4 Sep 2024 15:13:50 +0200 Subject: [PATCH] Add prints --- python/segyio/segy.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python/segyio/segy.py b/python/segyio/segy.py index e8d098584..5a31d2838 100644 --- a/python/segyio/segy.py +++ b/python/segyio/segy.py @@ -920,6 +920,15 @@ def interpret(self, ilines, xlines, offsets=None, sorting=TraceSortingFormat.INL xlines = np.copy(np.asarray(xlines, dtype=np.intc)) offsets = np.copy(np.asarray(offsets, dtype=np.intc)) + print("Ilines") + print(ilines) + print("Unique ilines") + print(np.unique(ilines)) + print("Xlines") + print(xlines) + print("Unique xlines") + print(np.unique(xlines)) + if np.unique(ilines).size != ilines.size: error = "Inlines inconsistent" solution = "expect all inlines to be unique"