Source code for emodpy_tbhiv.interventions

[docs]def purge_campaign_event( camp_event ): if "Node_Property_Restrictions" in camp_event.Event_Coordinator_Config: camp_event.Event_Coordinator_Config.pop("Node_Property_Restrictions" ) if "Node_Property_Restrictions" in camp_event.Event_Coordinator_Config.Intervention_Config: camp_event.Event_Coordinator_Config.Intervention_Config.pop("Node_Property_Restrictions") if "Property_Restrictions_Within_Node" in camp_event.Event_Coordinator_Config: if len(camp_event.Event_Coordinator_Config["Property_Restrictions_Within_Node"])==0: camp_event.Event_Coordinator_Config.pop("Property_Restrictions_Within_Node" )