Skip to content

Commit

Permalink
final fix in... needed to access invariant of agent id if parent == -1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed Feb 12, 2014
1 parent 7be6b31 commit 1e80be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/visitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def walk(self):
def visit_agents(self, table):
d = {self.agent_invariants[row[_agent_key]]:
tuple(row[i] if i not in _agent_id_names
else self.agent_invariants[row[i]]
else self.agent_invariants[row[_agent_key]]
for i in _agent_schema)
for row in table.iterrows()}
return tuple((k, d[k]) for k in sorted(d.keys()))
Expand Down

0 comments on commit 1e80be3

Please sign in to comment.