diff --git a/src/useq/_grid.py b/src/useq/_grid.py index 67917199..7b86876b 100644 --- a/src/useq/_grid.py +++ b/src/useq/_grid.py @@ -419,11 +419,8 @@ def __iter__(self) -> Iterator[GridPosition]: # type: ignore ): yield GridPosition(x, y, 0, 0, True) - def __len__(self) -> int: - return self.num_positions() - def num_positions(self) -> int: - return len(list(self.__iter__())) + return self.num_points def _random_points_in_ellipse(