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.
Note: 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_reptitions 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
|
E.g., (TBD) |
'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 Args: campaign (emodpy.campaign.emod_campaign.EMODCampaign): start_day: the day to distribute the Larvicides intervention filename: name of the filename created
Returns:
| Type | Description |
|---|---|
str
|
filename of the file created |