Skip to content

Commit

Permalink
change boolean behavior of wellplate plan
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 12, 2024
1 parent e1b0567 commit bd4dc40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/useq/_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 278 in src/useq/_plate.py

View check run for this annotation

Codecov / codecov/patch

src/useq/_plate.py#L278

Added line #L278 was not covered by tests

@overload
def __getitem__(self, index: int) -> Position: ...

Expand Down

0 comments on commit bd4dc40

Please sign in to comment.