From c2bfb56c311ad9abd586ddd42008ff62ec2dcc69 Mon Sep 17 00:00:00 2001 From: Jonathan Bloedow Date: Wed, 22 Nov 2023 14:51:44 -0800 Subject: [PATCH] routine_immunization needs to specify a dedupe policy. Note that without a default value for deduplication_policy this is a breaking change and a major revision. --- emodpy_typhoid/interventions/typhoid_vaccine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emodpy_typhoid/interventions/typhoid_vaccine.py b/emodpy_typhoid/interventions/typhoid_vaccine.py index b9d9642..cb2c2a1 100644 --- a/emodpy_typhoid/interventions/typhoid_vaccine.py +++ b/emodpy_typhoid/interventions/typhoid_vaccine.py @@ -155,7 +155,8 @@ def new_routine_immunization( Returns: TriggeredCampaignEvent: An instance of a triggered campaign event with the TyphoidVaccine intervention. """ - iv = new_vax( camp, efficacy=efficacy, mode=mode, constant_period=constant_period, decay_constant=decay_constant, expected_expiration=expected_expiration ) + # routine_immunization will always be a first vax (unless something is really whack) so mode doesn't matter. + iv = new_vax( camp, deduplication_policy="combine", efficacy=efficacy, mode=mode, constant_period=constant_period, decay_constant=decay_constant, expected_expiration=expected_expiration ) if co_event: signal = common.BroadcastEvent( camp, co_event ) iv = [ iv, signal ]