Skip to content

Commit

Permalink
Merge pull request projectmesa#898 from tpike3/master
Browse files Browse the repository at this point in the history
python 3.5 fail take 3
  • Loading branch information
tpike3 authored Aug 24, 2020
2 parents 3ac338f + 9e6a9e6 commit 9545ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/batchrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def collect_agent_vars(self, model):
""" Run reporters and collect agent-level variables. """
agent_vars = OrderedDict()
for agent in model.schedule._agents.values():
agent_record = {}
agent_record = OrderedDict()
for var, reporter in self.agent_reporters.items():
agent_record[var] = getattr(agent, reporter)
agent_vars[agent.unique_id] = agent_record
Expand Down

0 comments on commit 9545ea3

Please sign in to comment.