set_initial_susceptibility_in_patch#
- set_initial_susceptibility_in_patch(model, ipatch, susc_frac=1.0)[source]#
Set the population susceptibility level at the start of the simulation, in a specific patch. This function randomly selects individuals from the patch and changes their susceptibility to zero, according to the parameter susc_frac.
- Parameters:
model – The simulation model containing the population and parameters.
ipatch (
int) – The patch to set susceptibility insusc_frac (
float) – The fraction of individuals to keep susceptible.
- Return type:
None- Returns:
None