spacespraying
add_scheduled_space_spraying(campaign, start_day=1, node_ids=None, repetitions=1, timesteps_between_repetitions=365, spray_coverage=1.0, insecticide='', killing_initial_effect=1, killing_box_duration=-1, killing_decay_time_constant=0, intervention_name=iv_name, cost_to_consumer=0)
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
|
campaign object to which the intervention will be added, and schema_path container |
required |
start_day
|
int
|
The day the intervention is given out. |
1
|
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
None
|
repetitions
|
int
|
The number of times an intervention is given, used with timesteps_between_repetitions. -1 means the intervention repeats forever. Sets Number_Repetitions |
1
|
timesteps_between_repetitions
|
int
|
The interval, in timesteps, between repetitions. Ignored if repetitions = 1. Sets Timesteps_Between_Repetitions |
365
|
spray_coverage
|
float
|
The portion of the node that has been sprayed. This value is multiplied by the current efficacy of the WaningEffect |
1.0
|
insecticide
|
str
|
The name of the insecticide defined in |
''
|
intervention_name
|
str
|
The optional name used to refer to this intervention as a means to differentiate it from others that use the same class. It’s possible to have multiple UsageDependentBednets interventions attached to a person if they have different Intervention_Name values. |
iv_name
|
killing_initial_effect
|
float
|
Initial strength of the Killing effect. The effect may decay over time. |
1
|
killing_box_duration
|
float
|
Box duration of effect in days before the decay of Killing Initial_Effect. -1 indicates effect is indefinite (WaningEffectConstant) |
-1
|
killing_decay_time_constant
|
float
|
The exponential decay length, in days of the Killing Initial_Effect. |
0
|
cost_to_consumer
|
float
|
Per unit cost when distributed |
0
|
Returns:
Source code in emodpy_malaria/interventions/spacespraying.py
new_intervention_as_file(campaign, start_day=0, filename='SpaceSpraying.json')
Creates a file with SpaceSpray intervention
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 to distribute the SpaceSpraying intervention |
0
|
filename
|
str
|
name of the filename created |
'SpaceSpraying.json'
|
Returns:
| Type | Description |
|---|---|
str
|
filename of the file created |