From bd4dc4001b29d8e9ee5868f3e01cc048330c48fa Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Thu, 12 Sep 2024 17:27:05 -0400 Subject: [PATCH] change boolean behavior of wellplate plan --- src/useq/_plate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/useq/_plate.py b/src/useq/_plate.py index a4a70a3..aa7a767 100644 --- a/src/useq/_plate.py +++ b/src/useq/_plate.py @@ -273,6 +273,10 @@ def __len__(self) -> int: n_wells = len(self.selected_wells[0]) return n_wells * self.num_points_per_well + def __bool__(self) -> bool: + """bool(WellPlatePlan) == True.""" + return True + @overload def __getitem__(self, index: int) -> Position: ...