metawards.Populations

class metawards.Populations(_trajectory: List[metawards._population.Population] = None)[source]

This class holds the trajectory of Population objects recorded for every step (day) of a model outbreak

__init__(_trajectory: List[metawards._population.Population] = None) → None

Methods

__init__(_trajectory)
append(population) Append the next step in the trajectory.
strip_demographics() Remove the demographics information from this trajectory.
__getitem__(i: int)[source]

Return the ith Population in the trajectory

__str__()[source]

Return str(self).

append(population: metawards._population.Population)[source]

Append the next step in the trajectory.

Parameters:population (Population) – The population to append to this list
strip_demographics()[source]

Remove the demographics information from this trajectory. This makes it much smaller and easier to transmit over a network