Skip to content

laser.measles.compartmental.components.process_infection_seeding

laser.measles.compartmental.components.process_infection_seeding

laser.measles.compartmental.components.process_infection_seeding.InfectionSeedingParams

Bases: BaseInfectionSeedingParams

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

Example:

1
2
3
4
5
```python
from laser.measles.compartmental.components.process_infection_seeding import InfectionSeedingParams

params = InfectionSeedingParams()
```

laser.measles.compartmental.components.process_infection_seeding.InfectionSeedingProcess(model, verbose=False, params=None)

Bases: BaseInfectionSeedingProcess

Process infection seeding.

Example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
```python
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()))
```