Other

class AttrDict(*args, **kwargs)[source]

Dictionary where attribute calls are handled like item calls.

Examples

>>> ad = ap.AttrDict()
>>> ad['a'] = 1
>>> ad.a
1
>>> ad.b = 2
>>> ad['b']
2
class AttrList(*args, attr=None)[source]

List of attributes from an AgentList.

Calls are forwarded to each entry and return a list of return values. Boolean operators are applied to each entry and return a list of bools. Arithmetic operators are applied to each entry and return a new list. See AgentList for examples.