From 55e406e94b4dc5e2f132f717500e181d76d15ff0 Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Fri, 13 Nov 2020 16:54:35 +0100 Subject: [PATCH 1/2] Separate the Meeting/Office profiles. --- cara/apps/calculator/model_generator.py | 10 ++++++++-- cara/apps/calculator/templates/calculator.form.html.j2 | 6 ++++-- cara/apps/calculator/templates/report.html.j2 | 4 +++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cara/apps/calculator/model_generator.py b/cara/apps/calculator/model_generator.py index 3dd6a5e4..9ee7bd20 100644 --- a/cara/apps/calculator/model_generator.py +++ b/cara/apps/calculator/model_generator.py @@ -177,7 +177,12 @@ class FormData: 'office': ( 'Seated', # Mostly silent in the office, but 1/3rd of time talking. - {'Talking': 1, 'Breathing': 2} + {'Talking': 1, 'Breathing': 2} + ), + 'meeting': ( + 'Seated', + # Conversation of N people is approximately 1/N% of the time talking. + {'Talking': 1, 'Breathing': self.total_people - 1} ), 'callcentre': ('Seated', 'Talking'), 'training': ('Light exercise', 'Talking'), @@ -203,6 +208,7 @@ class FormData: def exposed_population(self) -> models.Population: scenario_activity = { 'office': 'Seated', + 'meeting': 'Seated', 'callcentre': 'Seated', 'training': 'Light exercise', 'workshop': 'Light exercise', @@ -382,7 +388,7 @@ def baseline_raw_form_data(): } -ACTIVITY_TYPES = {'office', 'training', 'callcentre', 'workshop'} +ACTIVITY_TYPES = {'office', 'meeting', 'training', 'callcentre', 'workshop'} EVENT_TYPES = {'single_event', 'recurrent_event'} MECHANICAL_VENTILATION_TYPES = {'air_changes', 'air_supply', 'not-applicable'} MASK_TYPES = {'Type I', 'FFP2'} diff --git a/cara/apps/calculator/templates/calculator.form.html.j2 b/cara/apps/calculator/templates/calculator.form.html.j2 index 9fd342bd..495ab3de 100644 --- a/cara/apps/calculator/templates/calculator.form.html.j2 +++ b/cara/apps/calculator/templates/calculator.form.html.j2 @@ -110,7 +110,8 @@
Activity type: