Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup two occurrences of removed scheduler #2499

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading