Skip to content

Commit

Permalink
Update space.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Nov 19, 2022
1 parent 483c28b commit 73c7593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesa/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def iter_cell_list_contents(
# iter_cell_list_contents returns only non-empty contents.
return (self.grid[x][y] for x, y in cell_list if self.grid[x][y])

@accept_tuple_argument
def get_cell_list_contents(self, cell_list: Iterable[Coordinate]) -> list[Agent]:
"""Returns a list of the contents of the cells
identified in cell_list.
Expand Down

0 comments on commit 73c7593

Please sign in to comment.