larvicide
add_larvicide(campaign, start_day=1, num_repetitions=0, timesteps_between_reps=365, spray_coverage=1.0, killing_effect=1, habitat_target='ALL_HABITATS', insecticide=None, box_duration=100, decay_time_constant=0.0, node_ids=None, intervention_name='Larvicides', cost_to_consumer=0, node_property_restrictions=None)
Create a new Larvicides scheduled campaign intervention.
For killing effects - depending on the parameters you set, different WaningEffect classes will be used:
• box_duration = -1 => WaningEffectConstant, decay_time_constant is ignored
• box_duration = 0 + decay_time_constant > 0 => WaningEffectExponential
• box_duration > 0 + decay_time_constant = 0 => WaningEffectBox
• box_duration > 0 + decay_time_constant > 0 => WaningEffectBoxExponential
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
|
required |
start_day
|
int
|
the day to distribute the Larvicides intervention. |
1
|
num_repetitions
|
int
|
Optional number of repetitions. |
0
|
timesteps_between_reps
|
int
|
Gap between repetitions, if num_repetitions is specified. |
365
|
spray_coverage
|
float
|
How much of each node to cover (total portion killed = killing effect * coverage). |
1.0
|
killing_effect
|
float
|
Portion of vectors killed by the intervention (Initial_Effect in WaningEffect). |
1
|
habitat_target
|
str
|
The type of habitat to target with the intervention. Default is "ALL_HABITATS". |
'ALL_HABITATS'
|
box_duration
|
int
|
Box_Duration of the WaningEffect |
100
|
decay_time_constant
|
float
|
decay_time_constant of the WaningEffect |
0.0
|
node_ids
|
list
|
list of node ids to which distribute the intervention |
None
|
insecticide
|
str
|
name of the insecticide defined in |
None
|
intervention_name
|
str
|
name of the intervention |
'Larvicides'
|
cost_to_consumer
|
float
|
Per unit cost when distributed |
0
|
node_property_restrictions
|
dict
|
dict of node property restrictions |
None
|
Source code in emodpy_malaria/interventions/larvicide.py
new_intervention_as_file(campaign, start_day=1, filename=None)
Creates a file with Larvicides intervention.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added. |
required |
start_day
|
int
|
the day to distribute the Larvicides intervention. |
1
|
filename
|
str
|
name of the filename created. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
filename of the file created |