FloatArr#
- class FloatArr(name=None, nan=nan, **kwargs)[source]#
Bases:
Arr
Subclass of Arr with defaults for floats and ints.
Note: Starsim does not support integer arrays by default since they introduce ambiguity in dealing with NaNs, and float arrays are suitable for most purposes. If you really want an integer array, you can use the default Arr class instead.
Attributes
auids
Link to the indices of active agents -- sim.people.auids
Return BoolArr for NaN values
Return BoolArr for non-NaN values
Return values that are not-NaN
values
Return the values of the active agents
Methods
- property isnan#
Return BoolArr for NaN values
- property notnan#
Return BoolArr for non-NaN values
- property notnanvals#
Return values that are not-NaN