treat_num#
- class treat_num(max_capacity=None, **kwargs)[source]#
Bases:
BaseTreatmentTreat a fixed number of people each timestep.
- Parameters:
max_capacity (int) – maximum number who can be treated each timestep
Attributes
has_productCheck if the intervention has a product
nowShortcut to self.t.now()
statesReturn a flat list of all states
statesdictReturn a flat dictionary (objdict) of all states
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods