We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8f475 commit 67cf88fCopy full SHA for 67cf88f
1 file changed
examples/energy_expenditure/model.py
@@ -85,10 +85,10 @@ class EnergyModel(Model):
85
- All agents eventually die due to energy depletion
86
"""
87
88
- def __init__(self, N=10, width=10, height=10):
+ def __init__(self, n=10, width=10, height=10):
89
super().__init__()
90
91
- self.num_agents = N
+ self.num_agents = n
92
self.grid = MultiGrid(width, height, torus=True)
93
self.schedule = RandomActivation(self)
94
0 commit comments