Skip to content

Commit 13b1fa6

Browse files
committed
Merge remote-tracking branch 'upstream/main' into logging
2 parents 86d5a7d + 54d7e28 commit 13b1fa6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

mesa/datacollection.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,7 @@ def get_reports(agent):
228228
reports = tuple(rep(agent) for rep in rep_funcs)
229229
return _prefix + reports
230230

231-
agent_records = map(
232-
get_reports,
233-
model.schedule.agents
234-
if hasattr(model, "schedule") and model.schedule is not None
235-
else model.agents,
236-
)
231+
agent_records = map(get_reports, model.agents)
237232
return agent_records
238233

239234
def _record_agenttype(self, model, agent_type):

mesa/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class Model:
3535
3636
Attributes:
3737
running: A boolean indicating if the model should continue running.
38-
schedule: An object to manage the order and execution of agent steps.
3938
steps: the number of times `model.step()` has been called.
4039
random: a seeded python.random number generator.
4140
rng : a seeded numpy.random.Generator

0 commit comments

Comments
 (0)