From a91ef8f9533c81703bf7751c4bc8c80bf96ae905 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Fri, 7 Oct 2022 09:10:12 +0200 Subject: [PATCH] updated short range message for P(I) one infected --- caimira/apps/templates/base/calculator.report.html.j2 | 2 +- caimira/models.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/caimira/apps/templates/base/calculator.report.html.j2 b/caimira/apps/templates/base/calculator.report.html.j2 index c988b594..244e0758 100644 --- a/caimira/apps/templates/base/calculator.report.html.j2 +++ b/caimira/apps/templates/base/calculator.report.html.j2 @@ -144,7 +144,7 @@ {% if form.short_range_option == 'short_range_yes' %}: {% else %} {{ prob_probabilistic_exposure | non_zero_percentage }}. diff --git a/caimira/models.py b/caimira/models.py index a3f3a5a2..fbcb2483 100644 --- a/caimira/models.py +++ b/caimira/models.py @@ -1483,7 +1483,6 @@ class ExposureModel: self, {'concentration_model.infected.number': num_infected} ) prob_ind = exposure_model.infection_probability().mean() / 100 - print(prob_ind) n = total_people - num_infected # By means of the total probability rule prob_at_least_one_infected = 1 - (1 - prob_ind)**n