diff --git a/examples/boltzmann_wealth_model_experimental/model.py b/examples/boltzmann_wealth_model_experimental/model.py index 0f61b883..11a3e958 100644 --- a/examples/boltzmann_wealth_model_experimental/model.py +++ b/examples/boltzmann_wealth_model_experimental/model.py @@ -18,6 +18,7 @@ class BoltzmannWealthModel(mesa.Model): """ def __init__(self, N=100, width=10, height=10): + super().__init__() self.num_agents = N self.grid = mesa.space.MultiGrid(width, height, True) self.schedule = mesa.time.RandomActivation(self) diff --git a/examples/caching_and_replay/model.py b/examples/caching_and_replay/model.py index 95c26b6a..028707e6 100644 --- a/examples/caching_and_replay/model.py +++ b/examples/caching_and_replay/model.py @@ -41,7 +41,7 @@ class Schelling(mesa.Model): def __init__(self, width=20, height=20, density=0.8, minority_pc=0.2, homophily=3): """ """ - + super().__init__() self.width = width self.height = height self.density = density