Skip to content

laser.measles.compartmental.components.process_infection_seeding

process_infection_seeding

InfectionSeedingParams

Bases: BaseInfectionSeedingParams

Parameters for infection seeding (inherits all fields from base).

Examples:

1
2
3
from laser.measles.compartmental.components.process_infection_seeding import InfectionSeedingParams

params = InfectionSeedingParams()

InfectionSeedingProcess(model, params=None)

Bases: BaseInfectionSeedingProcess

Process infection seeding.

Examples:

1
2
3
4
5
6
7
8
9
from laser.measles.scenarios.synthetic import single_patch_scenario
from laser.measles.compartmental import CompartmentalModel, CompartmentalParams
from laser.measles.compartmental import components
from laser.measles import create_component

scenario = single_patch_scenario(population=100_000, mcv1_coverage=0.85)
params = CompartmentalParams(num_ticks=365, seed=42, start_time="2000-01")
model = CompartmentalModel(scenario, params)
model.add_component(create_component(components.InfectionSeedingProcess, components.InfectionSeedingParams()))