Skip to content

Commit

Permalink
update unittest with new baseline from latest Emod
Browse files Browse the repository at this point in the history
  • Loading branch information
YeChen-IDM committed Oct 15, 2024
1 parent ebec4b6 commit 9fd726e
Show file tree
Hide file tree
Showing 5 changed files with 1,366 additions and 1 deletion.
335 changes: 335 additions & 0 deletions tests/inputs/2.20.5522.0_old_campaign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,335 @@
{
"Campaign_Name": "Unnamed Campaign",
"Events": [
{
"Event_Coordinator_Config": {
"Demographic_Coverage": 1,
"Individual_Selection_Type": "DEMOGRAPHIC_COVERAGE",
"Intervention_Config": {
"Age_Dependence": "SURFACE_AREA_DEPENDENT",
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"EIR_Type": "MONTHLY",
"Intervention_Name": "InputEIR",
"Monthly_EIR": [
13,
16,
8,
3,
5,
8,
44,
26,
35,
19,
13,
11
],
"New_Property_Value": "",
"Scaling_Factor": 1,
"class": "InputEIR"
},
"Node_Property_Restrictions": [],
"Number_Repetitions": 1,
"Property_Restrictions": [],
"Property_Restrictions_Within_Node": [],
"Target_Demographic": "Everyone",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Timesteps_Between_Repetitions": 365,
"class": "StandardInterventionDistributionEventCoordinator"
},
"Nodeset_Config": {
"class": "NodeSetAll"
},
"Start_Day": 0,
"class": "CampaignEvent"
},
{
"Event_Coordinator_Config": {
"Demographic_Coverage": 1,
"Individual_Selection_Type": "DEMOGRAPHIC_COVERAGE",
"Intervention_Config": {
"Actual_IndividualIntervention_Config": {
"Actual_IndividualIntervention_Configs": [
{
"Cost_To_Consumer": 0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Drug_Type": "Artemether",
"Intervention_Name": "AntimalarialDrug_Artemether",
"New_Property_Value": "",
"class": "AntimalarialDrug"
},
{
"Cost_To_Consumer": 0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Drug_Type": "Lumefantrine",
"Intervention_Name": "AntimalarialDrug_Lumefantrine",
"New_Property_Value": "",
"class": "AntimalarialDrug"
},
{
"Broadcast_Event": "ReceivedTreatment",
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Intervention_Name": "BroadcastEvent",
"New_Property_Value": "",
"class": "BroadcastEvent"
}
],
"Coverage": 1,
"Delay_Period_Distribution": "EXPONENTIAL_DISTRIBUTION",
"Delay_Period_Exponential": 3.3333333333333335,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Intervention_Name": "DelayedIntervention",
"New_Property_Value": "",
"class": "DelayedIntervention"
},
"Blackout_Event_Trigger": "",
"Blackout_On_First_Occurrence": 0,
"Blackout_Period": 0,
"Demographic_Coverage": 0.1,
"Disqualifying_Properties": [],
"Distribute_On_Return_Home": 0,
"Dont_Allow_Duplicates": 0,
"Duration": -1,
"Intervention_Name": "NodeLevelHealthTriggeredIV",
"New_Property_Value": "",
"Node_Property_Restrictions": [],
"Property_Restrictions": [],
"Target_Age_Max": 5,
"Target_Age_Min": 0,
"Target_Demographic": "ExplicitAgeRanges",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Trigger_Condition_List": [
"NewClinicalCase"
],
"class": "NodeLevelHealthTriggeredIV"
},
"Node_Property_Restrictions": [],
"Number_Repetitions": 1,
"Property_Restrictions": [],
"Property_Restrictions_Within_Node": [],
"Target_Demographic": "Everyone",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Timesteps_Between_Repetitions": -1,
"class": "StandardInterventionDistributionEventCoordinator"
},
"Nodeset_Config": {
"class": "NodeSetAll"
},
"Start_Day": 0.0,
"class": "CampaignEvent"
},
{
"Event_Coordinator_Config": {
"Demographic_Coverage": 1,
"Individual_Selection_Type": "DEMOGRAPHIC_COVERAGE",
"Intervention_Config": {
"Actual_IndividualIntervention_Config": {
"Actual_IndividualIntervention_Configs": [
{
"Cost_To_Consumer": 0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Drug_Type": "Artemether",
"Intervention_Name": "AntimalarialDrug_Artemether",
"New_Property_Value": "",
"class": "AntimalarialDrug"
},
{
"Cost_To_Consumer": 0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Drug_Type": "Lumefantrine",
"Intervention_Name": "AntimalarialDrug_Lumefantrine",
"New_Property_Value": "",
"class": "AntimalarialDrug"
},
{
"Broadcast_Event": "ReceivedTreatment",
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Intervention_Name": "BroadcastEvent",
"New_Property_Value": "",
"class": "BroadcastEvent"
}
],
"Coverage": 1,
"Delay_Period_Distribution": "EXPONENTIAL_DISTRIBUTION",
"Delay_Period_Exponential": 3.3333333333333335,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Intervention_Name": "DelayedIntervention",
"New_Property_Value": "",
"class": "DelayedIntervention"
},
"Blackout_Event_Trigger": "",
"Blackout_On_First_Occurrence": 0,
"Blackout_Period": 0,
"Demographic_Coverage": 0.1,
"Disqualifying_Properties": [],
"Distribute_On_Return_Home": 0,
"Dont_Allow_Duplicates": 0,
"Duration": -1,
"Intervention_Name": "NodeLevelHealthTriggeredIV",
"New_Property_Value": "",
"Node_Property_Restrictions": [],
"Property_Restrictions": [],
"Target_Age_Max": 100,
"Target_Age_Min": 5,
"Target_Demographic": "ExplicitAgeRanges",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Trigger_Condition_List": [
"NewClinicalCase"
],
"class": "NodeLevelHealthTriggeredIV"
},
"Node_Property_Restrictions": [],
"Number_Repetitions": 1,
"Property_Restrictions": [],
"Property_Restrictions_Within_Node": [],
"Target_Demographic": "Everyone",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Timesteps_Between_Repetitions": -1,
"class": "StandardInterventionDistributionEventCoordinator"
},
"Nodeset_Config": {
"class": "NodeSetAll"
},
"Start_Day": 0.0,
"class": "CampaignEvent"
},
{
"Event_Coordinator_Config": {
"Demographic_Coverage": 1,
"Individual_Selection_Type": "DEMOGRAPHIC_COVERAGE",
"Intervention_Config": {
"Actual_IndividualIntervention_Config": {
"Actual_IndividualIntervention_Configs": [
{
"Cost_To_Consumer": 0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Drug_Type": "Artemether",
"Intervention_Name": "AntimalarialDrug_Artemether",
"New_Property_Value": "",
"class": "AntimalarialDrug"
},
{
"Cost_To_Consumer": 0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Drug_Type": "Lumefantrine",
"Intervention_Name": "AntimalarialDrug_Lumefantrine",
"New_Property_Value": "",
"class": "AntimalarialDrug"
},
{
"Broadcast_Event": "ReceivedTreatment",
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Intervention_Name": "BroadcastEvent",
"New_Property_Value": "",
"class": "BroadcastEvent"
}
],
"Coverage": 1,
"Delay_Period_Distribution": "EXPONENTIAL_DISTRIBUTION",
"Delay_Period_Exponential": 2.0,
"Disqualifying_Properties": [],
"Dont_Allow_Duplicates": 0,
"Intervention_Name": "DelayedIntervention",
"New_Property_Value": "",
"class": "DelayedIntervention"
},
"Blackout_Event_Trigger": "",
"Blackout_On_First_Occurrence": 0,
"Blackout_Period": 0,
"Demographic_Coverage": 0.6,
"Disqualifying_Properties": [],
"Distribute_On_Return_Home": 0,
"Dont_Allow_Duplicates": 0,
"Duration": -1,
"Intervention_Name": "NodeLevelHealthTriggeredIV",
"New_Property_Value": "",
"Node_Property_Restrictions": [],
"Property_Restrictions": [],
"Target_Age_Max": 125,
"Target_Age_Min": 0,
"Target_Demographic": "ExplicitAgeRanges",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Trigger_Condition_List": [
"NewSevereCase"
],
"class": "NodeLevelHealthTriggeredIV"
},
"Node_Property_Restrictions": [],
"Number_Repetitions": 1,
"Property_Restrictions": [],
"Property_Restrictions_Within_Node": [],
"Target_Demographic": "Everyone",
"Target_Gender": "All",
"Target_Residents_Only": 0,
"Targeting_Config": {
"HasIP": {},
"HasIntervention": {},
"IsPregnant": {},
"TargetingLogic": {}
},
"Timesteps_Between_Repetitions": -1,
"class": "StandardInterventionDistributionEventCoordinator"
},
"Nodeset_Config": {
"class": "NodeSetAll"
},
"Start_Day": 0.0,
"class": "CampaignEvent"
}
],
"Use_Defaults": 1
}
Loading

0 comments on commit 9fd726e

Please sign in to comment.