From 9e6a9e6c887561dd8ceb52f838e85a089f6c597b Mon Sep 17 00:00:00 2001 From: tpike3 Date: Mon, 24 Aug 2020 04:18:59 -0400 Subject: [PATCH] python 3.5 fail take 3 --- mesa/batchrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesa/batchrunner.py b/mesa/batchrunner.py index 7cfe9cc02a2..e48c3e87984 100644 --- a/mesa/batchrunner.py +++ b/mesa/batchrunner.py @@ -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