diff --git a/src/tape/ensemble.py b/src/tape/ensemble.py index 27caf8d9..9ef50499 100644 --- a/src/tape/ensemble.py +++ b/src/tape/ensemble.py @@ -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)