emodpy_malaria.interventions.spacespraying module

emodpy_malaria.interventions.spacespraying.SpaceSpraying(campaign, start_day: int = 1, spray_coverage: float = 1.0, killing_effect: float = 1, insecticide: str = None, box_duration: int = 0, decay_rate: float = 0, node_ids: list = None)

Create a new SpaceSpraying scheduled campaign intervention. Note: for WaningEffect, Decay_Time_Constant = 1.0/decay_rate box_duration = 0 + decay_rate > 0 => WaningEffectExponential box_duration > 0 + decay_rate = 0 => WaningEffectBox/Constant (depending on duration) box_duration > 0 + decay_rate > 0 => WaningEffectBoxExponential

Args: campaign: start_day: the day to distribute the SpaceSpraying intervention spray_coverage: how much of each node to cover (total portion killed = killing effect * coverage) killing_effect: portion of vectors killed by the intervention (Initial_Effect in WaningEffect) insecticide: insecticide, if used box_duration: Box_Duration of the WaningEffect decay_rate: decay_rate of the WaningEffect, gets set as Decay_Time_Constant = 1.0/decay_rate node_ids: list of node ids to which distribute the intervention

Returns: The formatted intervention ready to be added to the campaign.

emodpy_malaria.interventions.spacespraying.new_intervention_as_file(campaign, start_day: int = 0, filename: str = None)

Creates a file with SpaceSpray intervention :param campaign: :param start_day: the day to distribute the SpaceSpraying intervention :param filename: name of the filename created

Returns: filename of the file created