model#
- model()#
- This module defines the CompartmentalModel class for SEIR simulation with daily timesteps - Classes:
- CompartmentalModel: A class to represent the compartmental SEIR model. 
 - Imports: - Model Class:
- Methods:
- __init__(self, scenario: BaseScenario, parameters: CompartmentalParams, name: str = “compartmental”) -> None:
- Initializes the model with the given scenario and parameters. 
- components(self) -> list:
- Gets the list of components in the model. 
- components(self, components: list) -> None:
- Sets the list of components in the model and initializes instances and phases. 
- __call__(self, model, tick: int) -> None:
- Updates the model for a given tick. 
- run(self) -> None:
- Runs the model for the specified number of ticks. 
- visualize(self, pdf: bool = True) -> None:
- Generates visualizations of the model’s results, either displaying them or saving to a PDF. 
- plot(self, fig: Figure = None):
- Generates plots for the scenario patches and populations, distribution of day of birth, and update phase times. 
 
 
 
