Skip to content

Commit

Permalink
fix off by one; remove partition output
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Dec 22, 2023
1 parent 16e1fe9 commit f8c5847
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tape/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1891,9 +1891,8 @@ def select_random_timeseries(self, seed=None):
print(f"Selected Object {lcid} from Partition {partitions[i]}")
object_selected = True
else:
print(f"skipped empty partition: {partitions[i]}")
i += 1
if i > len(partitions):
if i >= len(partitions):
raise IndexError("Found no object IDs in the Object Table.")

return self.to_timeseries(lcid)
Expand Down

0 comments on commit f8c5847

Please sign in to comment.