inputeir
add_scheduled_input_eir(campaign, start_day=1, node_ids=None, monthly_eir=None, daily_eir=None, scaling_factor=1.0, intervention_name=iv_name)
Create a full CampaignEvent that distributes InputEIR to a population. InputEIR is used to specify an entomological inoculation rate (EIR) for a node, the person's individual risk of receiving the inoculation is affected by Age_Dependent_Biting_Risk_Type setting, Enable_Demographics_Risk setting, and any AcquisitionBlocking vaccines that an individual may have received.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
Passed in campaign (from emod_api.campaign) |
required |
start_day
|
int
|
The day on which the monthly_eir cycle starts |
1
|
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
None
|
monthly_eir
|
list
|
An array of 12 elements that contain an entomological inoculation rate (EIR) for each month; Each value should be between 0 and 1000 |
None
|
daily_eir
|
list
|
An array of 365 values where each value is the mean number of infectious bites experienced by an individual for that day of the year |
None
|
scaling_factor
|
float
|
A modifier that is multiplied by the EIR determined for the current day |
1.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 InputEIR interventions attached to a node if they have different Intervention_Name values. |
iv_name
|
Source code in emodpy_malaria/interventions/inputeir.py
new_intervention_as_file(campaign, start_day=0, monthly_eir=None, daily_eir=None, filename='InputEIR.json')
Create an InputEIR intervention as its own file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
Passed in campaign (from emod_api.campaign) |
required |
start_day
|
int
|
The day on which the monthly_eir cycle starts |
0
|
monthly_eir
|
list
|
An array of 12 elements that contain an entomological inoculation rate (EIR) for each month; Each value should be between 0 and 1000 |
None
|
daily_eir
|
list
|
An array of 365 values where each value is the mean number of infectious bites experienced by an individual for that day of the year |
None
|
filename
|
str
|
filename used for the file created |
'InputEIR.json'
|
Returns:
| Type | Description |
|---|---|
str
|
The filename of the file created |