We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79c3f2 commit a18f176Copy full SHA for a18f176
pylabrobot/resources/functional.py
@@ -62,6 +62,12 @@ def save_state(self):
62
def set_index(self, index: int):
63
self._tip_spot_idx = index
64
65
+ def get_num_tips_left(self) -> int:
66
+ """Returns the number of tips left to be sampled. Raises an error if repeat is True."""
67
+ if self.repeat:
68
+ raise RuntimeError("Cannot get number of tips left when repeat is True.")
69
+ return len(self.tip_spots) - self._tip_spot_idx
70
+
71
72
async def randomized_tip_spot_generator(
73
tip_spots: List[TipSpot],
0 commit comments