From f8c584713d1ae27fa0daafadcdd227042bbf7725 Mon Sep 17 00:00:00 2001 From: Doug Branton Date: Fri, 22 Dec 2023 11:49:52 -0800 Subject: [PATCH] fix off by one; remove partition output --- src/tape/ensemble.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)