Remove agent from schedule during SimultaneousActivation #1390
-
A model I originally built with RandomActivation has the following code for when an agent selects a move which is an exit: Everything works fine with RandomActivation. In a desire to explore SimultaneousActivation I split out the agent_step to include an Line 273 is the model's step function. That key error (11, 15) makes no sense to me. It isn't the location of the agent in question, nor a position the agent started in or even occupied. Any input on understanding this error, a correction, and ultimately removing agents from the model/schedule in SimultaneousActivation is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You can make it work by adding Line 147 in 54f76b4 |
Beta Was this translation helpful? Give feedback.
You can make it work by adding
agent_keys = list(self._agents.keys())
after this linemesa/mesa/time.py
Line 147 in 54f76b4