IndexArr#

class IndexArr(name=None, label=None)[source]#

Bases: Arr

A special class of Arr used for UIDs and RNG IDs; not to be used as an integer array (for that, use FloatArr)

Attributes

auids

Link to the indices of active agents -- sim.people.auids

isnan

notnan

uids

Alias to self.values, to allow Arr.uids like BoolArr

values

Return the values of the active agents

Methods

property uids#

Alias to self.values, to allow Arr.uids like BoolArr

grow(new_uids=None, new_vals=None)[source]#

Change the size of the array