Fix issues with vaccinate_prob and vaccinate_num by implmenting modification in BaseVaccination
@@ -1391,6 +1391,7 @@ class BaseVaccination(Intervention):
self.vaccinations[vacc_inds] += 1
self.vaccination_dates[vacc_inds] = sim.t
sim.people.flows['new_vaccinations'] += len(vacc_inds)
+ sim.people.flows['new_vaccinated'] += np.sum(sim.people.vaccinations[vacc_inds] == 0)
sim.people.vaccinated[vacc_inds] = True
sim.people.vaccine_source[vacc_inds] = self.index
sim.people.vaccinations[vacc_inds] += 1
@@ -1490,8 +1491,8 @@ class vaccinate_prob(BaseVaccination):
if len(vacc_inds):
self.vaccinated[sim.t] = vacc_inds
- sim.people.flows['new_vaccinations'] += len(vacc_inds)
- sim.people.flows['new_vaccinated'] += len(vacc_inds)
+ #sim.people.flows['new_vaccinations'] += len(vacc_inds)
+ #sim.people.flows['new_vaccinated'] += len(vacc_inds)
if self.p.interval is not None:
next_dose_day = sim.t + self.p.interval
if next_dose_day < sim['n_days']:
