I suspect you have older method definitions interfering here, but it’s hard to tell without a working example, and it would also help to make the code more readable. Please have a look here:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Is there an alternative to the agents_first keyword? | 2 | 149 | April 21, 2024 | |
| Unable to use add_agent!() function with keyword argument | 2 | 382 | July 26, 2021 | |
| Running agents.jl model with run!() | 6 | 226 | July 2, 2024 | |
| Method Error object of type AgentBasedModel is not callable | 2 | 472 | April 4, 2022 | |
| Agents Based Modeling (using Agents.jl) | 7 | 1041 | May 5, 2022 |