-
|
As shown on: https://mesa.readthedocs.io/en/latest/apis/space.html#mesa.space.MultiGrid.get_neighbors I was trying to use
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It looks like there is no comma in between |
Beta Was this translation helpful? Give feedback.
-
|
The error happened because |
Beta Was this translation helpful? Give feedback.

The error happened because
self.nueva_posicionisNoneinstead of a tuple. If you handle this case inadvance, there should be no problem. Make sure to also check thatif self.pos != self.nueva_posicionalso makes sense if it isNone.