[docs]defnew_intervention(camp):""" ModifySTICoInfection intervention wrapper. Just the intervention. No configuration yet. """intervention=s2c.get_class_with_defaults("ModifyStiCoInfectionStatus",camp.schema_path)intervention.New_STI_CoInfection_Status=1returnintervention
[docs]defnew_intervention_event(camp,start_day=1,coverage=1.0,node_ids=None):""" ModifySTICoInfection intervention as complete (scheduled) event. """new_iv=new_intervention(camp)# Coordinatorcoordinator=s2c.get_class_with_defaults("StandardEventCoordinator",camp.schema_path)coordinator.Intervention_Config=new_ivcoordinator.Demographic_Coverage=coverage# Eventevent=s2c.get_class_with_defaults("CampaignEvent",camp.schema_path)event.Event_Coordinator_Config=coordinatorevent.Start_Day=float(start_day)event.Nodeset_Config=utils.do_nodes(camp.schema_path,node_ids)from.importutilsashiv_utilshiv_utils.declutter(event)returnevent