Skip to content

Commit

Permalink
Add prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinung-r committed Aug 2, 2024
1 parent 46e56da commit 44708ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/segyio/segy.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,13 @@ def interpret(self, ilines, xlines, offsets=None, sorting=TraceSortingFormat.INL
offsets = np.arange(1)

ilines = np.copy(np.asarray(ilines, dtype=np.intc))
print(ilines)
print("Number of unique inlines: {}".format(np.unique(ilines).size))
print("Number of inlines: {}".format(ilines.size))
xlines = np.copy(np.asarray(xlines, dtype=np.intc))
print(xlines)
print("Number of unique xnlines: {}".format(np.unique(xlines).size))
print("Number of xnlines: {}".format(xlines.size))
offsets = np.copy(np.asarray(offsets, dtype=np.intc))

if np.unique(ilines).size != ilines.size:
Expand Down

0 comments on commit 44708ed

Please sign in to comment.