Skip to content

Commit

Permalink
routine_immunization needs to specify a dedupe policy. Note that with…
Browse files Browse the repository at this point in the history
…out a default value for deduplication_policy this is a breaking change and a major revision.
  • Loading branch information
Jonathan Bloedow committed Nov 22, 2023
1 parent eac16bf commit c2bfb56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emodpy_typhoid/interventions/typhoid_vaccine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit c2bfb56

Please sign in to comment.