Skip to content

Commit

Permalink
Cleanup two occurances of removed scheduler (#2499)
Browse files Browse the repository at this point in the history
Follow-up on the removal of the schedulers, removes a mention in the Model docstring and one check in the DataCollector
  • Loading branch information
EwoutH authored Nov 12, 2024
1 parent c2c406f commit 54d7e28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions mesa/datacollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,7 @@ def get_reports(agent):
reports = tuple(rep(agent) for rep in rep_funcs)
return _prefix + reports

agent_records = map(
get_reports,
model.schedule.agents
if hasattr(model, "schedule") and model.schedule is not None
else model.agents,
)
agent_records = map(get_reports, model.agents)
return agent_records

def _record_agenttype(self, model, agent_type):
Expand Down
1 change: 0 additions & 1 deletion mesa/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class Model:
Attributes:
running: A boolean indicating if the model should continue running.
schedule: An object to manage the order and execution of agent steps.
steps: the number of times `model.step()` has been called.
random: a seeded python.random number generator.
rng : a seeded numpy.random.Generator
Expand Down

0 comments on commit 54d7e28

Please sign in to comment.