Skip to content

Commit

Permalink
Provided a default implementation for Dataset.trace_indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-smallshire committed Sep 24, 2020
1 parent f54cd0b commit e1c5f63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions segpy/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ def dimensionality(self):
"""
raise NotImplementedError

@abstractmethod
def trace_indexes(self):
"""An iterator over zero-based trace_samples indexes.
Returns:
An iterator which yields integers in the range zero to
num_traces - 1
"""
raise NotImplementedError
return range(0, self.num_traces())

@abstractmethod
def num_traces(self):
Expand Down

0 comments on commit e1c5f63

Please sign in to comment.