Skip to content

Commit

Permalink
Update experimental/cell_space agents
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 29, 2024
1 parent 41cc79b commit 002b5d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mesa/experimental/cell_space/cell_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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.
Args:
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:
Expand Down
4 changes: 2 additions & 2 deletions mesa/experimental/devs/examples/epstein_civil_violence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 002b5d9

Please sign in to comment.