age_pyramids#
- class age_pyramids(bins=None)[source]#
Bases:
AnalyzerRecords age pyramids for each timestep.
- self.bins#
A list of ages, default is a sequence from 0 to max_age + 1.
- self.data#
A matrix of shape (number of timesteps, number of bins - 1) containing age pyramid data.
Attributes
auto_state_listList of "automatic" states with boolean type (ss.BoolState) that were added via define_states()
dtGet the current module timestep
nowShortcut to self.t.now()
state_dictReturn a flat dictionary (objdict) of all states
state_listReturn a flat list of all states (ss.Arr objects)
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods