scale_larval_habitats
add_habitat_reduction_event(campaign, start_day, node_ids, habitat_scales, repetitions, timesteps_between_repetitions)
Add a campaign event to reduce vector's larval habitat(s).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
start_day
|
int
|
The day the intervention is given out. |
required |
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
required |
habitat_scales
|
list
|
List of dictionaries for scaling larval habitats. Examples:: |
required |
repetitions
|
int
|
The number of times an intervention is given, used with timesteps_between_repetitions. -1 means the intervention repeats forever. Sets Number_Repetitions |
required |
timesteps_between_repetitions
|
int
|
The interval, in timesteps, between repetitions. Ignored if repetitions = 1. Sets Timesteps_Between_Repetitions |
required |
Source code in emodpy_malaria/interventions/scale_larval_habitats.py
add_scale_larval_habitats(campaign, df=None, start_day=0, repetitions=1, timesteps_between_repetitions=365)
Reduce available larval habitat in a node-specific way.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
df
|
DataFrame
|
The dataframe containing habitat scale factors. |
None
|
start_day
|
int
|
The date that habitats are scaled for all scaling actions specified in df. Used only if there is no Start_Day column in df. |
0
|
repetitions
|
int
|
The number of times to repeat the intervention. |
1
|
timesteps_between_repetitions
|
int
|
The number of time steps between repetitions. |
365
|