AB-CE / abce

Agent-based computational Economics, the Python library that makes AB modelling easier
http://abce.readthedocs.io
190 stars 64 forks source link

Groups: Add __getitem__ to access an agent (only serial) #61

Closed rht closed 6 years ago

rht commented 7 years ago

An agent can be accessed via agent_groups[i]. Additionally, each agent can be looped, e.g. [a for a in agent_groups].

Currently this only works at serial execution.

DavoudTaghawiNejad commented 6 years ago

Got redundant with the last rewrite