Skip to content

laser.measles.compartmental.params

laser.measles.compartmental.params

Parameters for the compartmental SEIR model with daily timesteps.

laser.measles.compartmental.params.CompartmentalParams

Bases: BaseModelParams

Parameters for the compartmental SEIR model with daily timesteps.

Inherits all fields from BaseModelParams. Each tick represents one day, and the model tracks four SEIR states.

Parameters:

Name Type Description Default
num_ticks int

Number of daily simulation steps (e.g., 365 = 1 year).

required
seed int

Random seed for reproducibility. Default: 20250314.

required
start_time str

Simulation start in "YYYY-MM" format. Default: "2000-01".

required
verbose bool

Print detailed logging. Default: False.

required

Example:

1
2
3
```python
params = CompartmentalParams(num_ticks=365, seed=42, start_time="2000-01")
```

laser.measles.compartmental.params.CompartmentalParams.states property

SEIR state names: ["S", "E", "I", "R"].

laser.measles.compartmental.params.CompartmentalParams.time_step_days property

Duration of one tick in days (always 1 for the compartmental model).