track_as#

class track_as[source]#

Bases: Analyzer

Analyzer for tracking age-specific results

Attributes

now

Shortcut to self.t.now()

states

Return a flat list of all states

statesdict

Return a flat dictionary (objdict) of all states

ti

Get the current module timestep

timevec

Shortcut to self.t.timevec

Methods

log_age_split(binned_ages_t, channel, numerators, denominators=None)[source]#

Method called if age-specific results are being tracked. Separates results by age.

step()[source]#

Apply the analyzer Note: much of the logic won’t work because the sim doesn’t record the time at which events occur (!), so attributes like ppl.ti_pregnant won’t exist. These are all slated to be added as part of the V3 refactor. For now, this is a placeholder.