Skip to content

Commit fc1fe33

Browse files
committed
use individual_id for demography.do_death()
1 parent 12a24dc commit fc1fe33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tlo/methods/malaria.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def apply(self, person_id):
857857
# if draw -> death
858858
if prob < self.module.parameters['treatment_adjustment']:
859859
self.sim.modules['Demography'].do_death(
860-
person_id=person_id, cause=self.cause, originating_module=self.module)
860+
individual_id=person_id, cause=self.cause, originating_module=self.module)
861861

862862
df.at[person_id, 'ma_date_death'] = self.sim.date
863863

@@ -875,7 +875,7 @@ def apply(self, person_id):
875875
# if not on treatment - death will occur
876876
else:
877877
self.sim.modules['Demography'].do_death(
878-
person_id=person_id, cause=self.cause, originating_module=self.module)
878+
individual_id=person_id, cause=self.cause, originating_module=self.module)
879879

880880
df.at[person_id, 'ma_date_death'] = self.sim.date
881881

0 commit comments

Comments
 (0)