You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ammars-MacBook-Pro:virus_on_network ammarqureshi$ python run.py
Traceback (most recent call last):
File "run.py", line 1, in <module>
from virus_on_network.server import server
File "/Users/ammarqureshi/mesa/mesa/examples/virus_on_network/virus_on_network/server.py", line 84, in <module>
server = ModularServer(VirusOnNetwork, [network, MyTextElement(), chart], 'Virus Model', model_params)
File "/Users/ammarqureshi/anaconda/lib/python3.6/site-packages/mesa/visualization/ModularVisualization.py", line 276, in __init__
self.reset_model()
File "/Users/ammarqureshi/anaconda/lib/python3.6/site-packages/mesa/visualization/ModularVisualization.py", line 302, in reset_model
self.model = self.model_cls(**model_params)
File "/Users/ammarqureshi/mesa/mesa/examples/virus_on_network/virus_on_network/model.py", line 42, in __init__
self.grid = NetworkGrid(self.G)
File "/Users/ammarqureshi/anaconda/lib/python3.6/site-packages/mesa/space.py", line 784, in __init__
for node_id in self.G.nodes:
TypeError: 'method' object is not iterable
Describe the bug
Expected behavior
should run the model
To Reproduce
python run.py
Additional Context
The text was updated successfully, but these errors were encountered: