Skip to content

laser.measles.abm.components.process_disease

laser.measles.abm.components.process_disease

Component defining the DiseaseProcess, which simulates the disease progression in the ABM model with MCV1.

laser.measles.abm.components.process_disease.DiseaseProcess(model, verbose=False, params=None)

Bases: BaseComponent

This component provides disease progression (E->I->R) It is used to update the infectious timers and the exposed timers.

laser.measles.abm.components.process_disease.nb_gamma_update(count, timers_0, timers_1, state, shape, scale, flow, patch_id)

Numba compiled function to check and update exposed timers for the population in parallel.

laser.measles.abm.components.process_disease.nb_state_update(count, timers, state, new_state, flow, patch_id)

Numba compiled function to check and update infection timers for the population in parallel.

laser.measles.abm.components.process_disease.numpy_gamma_update(count, timers_0, timers_1, state, shape, scale, flow, patch_id)

Numpy function to check and update exposed timers for the population.

laser.measles.abm.components.process_disease.numpy_state_update(count, timers, state, new_state, flow, patch_id)

Numpy function to check and update infection timers for the population.