Advanced tutorial: agents don't move in visualization #1397
-
I have two files to run the visualization of the MoneyModel. I think exactly according to the tutorial, however, the agents do not move at all while clicking on step in the browser visualization. I cannot find my mistake. I hope this is the right place to ask. Any ideas how to overcome this? Like literally nothing happens when pressing start or step in the visualization. Also perhaps of interest: The server opens and automatically fills red agents as wanted. If reset is pressed, it actually goes blank. Exactly the reverse way of the tutorial description. I have this file MoneyModel.py
and this file MoneyModel_viz
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I found the cause. It's because in the model |
Beta Was this translation helpful? Give feedback.
I found the cause. It's because in the model
__init__
, you didn't putself.running = True
. This is a mistake that it is missin in the advanced tutorial.