bednet
add_itn_scheduled(campaign, start_day=0, coverage_by_ages=None, demographic_coverage=1.0, target_num_individuals=None, node_ids=None, repetitions=1, timesteps_between_repetitions=365, ind_property_restrictions=None, receiving_itn_broadcast_event=None, blocking_initial_effect=0.9, blocking_box_duration=0, blocking_decay_time_constant=7300, killing_initial_effect=0.6, killing_box_duration=0, killing_decay_time_constant=7300, repelling_initial_effect=0, repelling_box_duration=-1, repelling_decay_time_constant=0, usage_initial_effect=1, usage_box_duration=-1, usage_decay_time_constant=0, insecticide='', cost=0, intervention_name='SimpleBednet')
Add a scheduled SimpleBednet intervention.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
object for building, modifying, and writing campaign configuration files. |
required |
start_day
|
int
|
Start day of intervention. |
0
|
coverage_by_ages
|
list
|
A list of dictionaries defining the coverage per
age group. For example, |
None
|
start_day
|
int
|
The day the intervention is given out. |
0
|
demographic_coverage
|
float
|
This value is the probability that each individual in the target population will receive the intervention. It does not guarantee that the exact fraction of the target population set by Demographic_Coverage receives the intervention. |
1.0
|
target_num_individuals
|
int
|
The exact number of people to select out of the targeted group. If this value is set, demographic_coverage parameter is ignored |
None
|
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
|
ind_property_restrictions
|
list
|
A list of dictionaries of IndividualProperties, which are needed for the individual
to receive the intervention. Sets the Property_Restrictions_Within_Node. In the format |
None
|
receiving_itn_broadcast_event
|
str
|
Optional. BroadcastEvent that's sent out when bednet is received. Default is to send out 'Received_ITN' event. To not send out event set to None. |
None
|
killing_initial_effect
|
float
|
Initial strength of the Killing effect. The effect may decay over time. |
0.6
|
killing_box_duration
|
int
|
Box duration of effect in days before the decay of Killing Initial_Effect. |
0
|
killing_decay_time_constant
|
float
|
The exponential decay length, in days of the Killing Initial_Effect. |
7300
|
blocking_initial_effect
|
float
|
Initial strength of the Blocking effect. The effect may decay over time. |
0.9
|
blocking_box_duration
|
float
|
Box duration of effect in days before the decay of Blocking Initial_Effect. |
0
|
blocking_decay_time_constant
|
float
|
The exponential decay length, in days of the Blocking Initial_Effect. |
7300
|
repelling_initial_effect
|
float
|
Initial strength of the Repelling effect. The effect may decay over time. |
0
|
repelling_box_duration
|
float
|
Box duration of effect in days before the decay of Repelling Initial_Effect. |
-1
|
repelling_decay_time_constant
|
float
|
The exponential decay length, in days of the Repelling Initial_Effect. |
0
|
usage_initial_effect
|
float
|
Determines when and if an individual is using a bed net. |
1
|
usage_box_duration
|
float
|
? |
-1
|
usage_decay_time_constant
|
float
|
? |
0
|
insecticide
|
str
|
The name of the insecticide defined in config.Insecticides for this intervention. If insecticides are being used, then this must be defined as one of those values. If they are not being used, then this does not needed to be specified or can be empty string. It cannot have a value if config.Insecticides does not define anything. |
''
|
cost
|
float
|
Unit cost per bednet |
0
|
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 SimpleBednet interventions attached to a person if they have different Intervention_Name values. |
'SimpleBednet'
|
Source code in emodpy_malaria/interventions/bednet.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
add_itn_triggered(campaign, start_day=0, demographic_coverage=1.0, trigger_condition_list=None, listening_duration=-1, delay_period_constant=0, node_ids=None, repetitions=1, timesteps_between_repetitions=365, ind_property_restrictions=None, receiving_itn_broadcast_event=None, blocking_initial_effect=0.9, blocking_box_duration=0, blocking_decay_time_constant=7300, killing_initial_effect=0.6, killing_box_duration=0, killing_decay_time_constant=7300, repelling_initial_effect=0, repelling_box_duration=-1, repelling_decay_time_constant=0, usage_initial_effect=1, usage_box_duration=-1, usage_decay_time_constant=0, insecticide='', cost=0, intervention_name='SimpleBednet')
Adds a triggered SimpleBednet intervention
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
object for building, modifying, and writing campaign configuration files. |
required |
start_day
|
int
|
The day the intervention is given out. |
0
|
demographic_coverage
|
float
|
This value is the probability that each individual in the target population will receive the intervention. It does not guarantee that the exact fraction of the target population set by Demographic_Coverage receives the intervention. |
1.0
|
trigger_condition_list
|
list
|
A list of the events that will trigger intervention distribution. |
None
|
listening_duration
|
int
|
The number of time steps that the distributed event will monitor for triggers. Default is -1, which is indefinitely. |
-1
|
delay_period_constant
|
float
|
Optional. Delay, in days, before the intervention is given out after a trigger is received. |
0
|
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
|
ind_property_restrictions
|
list
|
A list of dictionaries of IndividualProperties, which are needed for the individual
to receive the intervention. Sets the Property_Restrictions_Within_Node. In the format |
None
|
receiving_itn_broadcast_event
|
str
|
Optional. BroadcastEvent that's sent out when bednet is received. Default is to send out 'Received_ITN' event. To not send out event set to None. |
None
|
killing_initial_effect
|
float
|
Initial strength of the Killing effect. The effect may decay over time. |
0.6
|
killing_box_duration
|
int
|
Box duration of effect in days before the decay of Killing Initial_Effect. |
0
|
killing_decay_time_constant
|
float
|
The exponential decay length, in days of the Killing Initial_Effect. |
7300
|
blocking_initial_effect
|
float
|
Initial strength of the Blocking effect. The effect may decay over time. |
0.9
|
blocking_box_duration
|
float
|
Box duration of effect in days before the decay of Blocking Initial_Effect. |
0
|
blocking_decay_time_constant
|
float
|
The exponential decay length, in days of the Blocking Initial_Effect. |
7300
|
repelling_initial_effect
|
float
|
Initial strength of the Repelling effect. The effect may decay over time. |
0
|
repelling_box_duration
|
float
|
Box duration of effect in days before the decay of Repelling Initial_Effect. |
-1
|
repelling_decay_time_constant
|
float
|
The exponential decay length, in days of the Repelling Initial_Effect. |
0
|
usage_initial_effect
|
float
|
Determines when and if an individual is using a bed net. |
1
|
usage_box_duration
|
float
|
? |
-1
|
usage_decay_time_constant
|
float
|
? |
0
|
insecticide
|
str
|
The name of the insecticide defined in config.Insecticides for this intervention. If insecticides are being used, then this must be defined as one of those values. If they are not being used, then this does not needed to be specified or can be empty string. It cannot have a value if config.Insecticides does not define anything. |
''
|
cost
|
float
|
Unit cost per bednet |
0
|
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 SimpleBednet interventions attached to a person if they have different Intervention_Name values. |
'SimpleBednet'
|
Source code in emodpy_malaria/interventions/bednet.py
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | |
new_intervention_as_file(campaign, start_day, filename=None)
Write a campaign file to disk with a single bednet event, using defaults. Useful for testing and learning.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
The |
required |
start_day
|
float
|
The day of the simulation on which the bednets are distributed. We recommend aligning this with the start of the simulation. |
required |
filename
|
str
|
The campaign filename; can be omitted and default will be used and returned to user. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The campaign filename written to disk. |