Skip to content

Commit

Permalink
Add prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinung-r committed Sep 4, 2024
1 parent 4e52ca6 commit 978a11c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/segyio/segy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 978a11c

Please sign in to comment.