Skip to content

Commit

Permalink
Deprecate neighbor_iter in favor of iter_neighbors 🇺🇦
Browse files Browse the repository at this point in the history
See #980.
  • Loading branch information
rht authored and jackiekazil committed Mar 23, 2022
1 parent 2b2a830 commit 646e751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/conways_game_of_life/conways_game_of_life/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def isAlive(self):

@property
def neighbors(self):
return self.model.grid.neighbor_iter((self.x, self.y), True)
return self.model.grid.iter_neighbors((self.x, self.y), True)

def step(self):
"""
Expand Down

0 comments on commit 646e751

Please sign in to comment.