From 002b5d956ebfdcf1fec36c5f79faad2f08c58471 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Thu, 29 Aug 2024 21:25:08 +0200 Subject: [PATCH] Update experimental/cell_space agents --- mesa/experimental/cell_space/cell_agent.py | 4 ++-- mesa/experimental/devs/examples/epstein_civil_violence.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mesa/experimental/cell_space/cell_agent.py b/mesa/experimental/cell_space/cell_agent.py index abc5155a670..5f1cca5cbcc 100644 --- a/mesa/experimental/cell_space/cell_agent.py +++ b/mesa/experimental/cell_space/cell_agent.py @@ -19,7 +19,7 @@ class CellAgent(Agent): cell: (Cell | None): the cell which the agent occupies """ - def __init__(self, unique_id: int, model: Model) -> None: + def __init__(self, model: Model) -> None: """ Create a new agent. @@ -27,7 +27,7 @@ def __init__(self, unique_id: int, model: Model) -> None: unique_id (int): A unique identifier for this agent. model (Model): The model instance in which the agent exists. """ - super().__init__(unique_id, model) + super().__init__(model) self.cell: Cell | None = None def move_to(self, cell) -> None: diff --git a/mesa/experimental/devs/examples/epstein_civil_violence.py b/mesa/experimental/devs/examples/epstein_civil_violence.py index 9a7314e0ff3..f61e2bbb771 100644 --- a/mesa/experimental/devs/examples/epstein_civil_violence.py +++ b/mesa/experimental/devs/examples/epstein_civil_violence.py @@ -7,8 +7,8 @@ class EpsteinAgent(Agent): - def __init__(self, unique_id, model, vision, movement): - super().__init__(unique_id, model) + def __init__(self, model, vision, movement): + super().__init__(model) self.vision = vision self.movement = movement