SimpleChoice#
- class SimpleChoice(pars=None, location=None, data=None, contra_mod='simple', **kwargs)[source]#
Bases:
RandomChoiceSimple choice model where method choice depends on age and previous method. Uses location-specific data to set parameters, and needs to be initialized with either a location string or a data dictionary.
Attributes
auto_state_listList of "automatic" states with boolean type (ss.BoolState) that were added via define_states()
average_dur_usedtGet 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