-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
cell.agents is prone to create bugs #2682
Copy link
Copy link
Closed
Description
In the new discrete spaces, you can easily access the agents in a given cell, via cell.agents. However, if you modify this list by, e.g., removing agents from it, you mess up everything because you are modifying which agents reside in which cell. The obvious solution is that cell.agent should return a copy of the list of agents, rather than the actual list. This removes the potential for side effects.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels