StateTracker#

class StateTracker(model, verbose=False, params=None)[source]#

Bases: BaseStateTracker

Atate tracking component.

Tracks disease state populations over time in agent-based models. Records detailed temporal dynamics of S, E, I, R compartments at the patch level.

Initialize the component.

Parameters:
  • model – The model instance this component belongs to.

  • verbose (bool) – Whether to enable verbose output. Defaults to False.