From dcc1dac1d4e46034da26763ba442d3c846e31386 Mon Sep 17 00:00:00 2001 From: jdevine Date: Mon, 16 Nov 2020 16:08:08 +0100 Subject: [PATCH 1/5] Modified activity parameters and updated calculator scenarios --- cara/apps/calculator/README.md | 2 +- cara/apps/calculator/model_generator.py | 11 +++++++---- .../apps/calculator/templates/calculator.form.html.j2 | 6 +++--- cara/apps/calculator/templates/report.html.j2 | 4 ++-- cara/models.py | 4 ++-- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/cara/apps/calculator/README.md b/cara/apps/calculator/README.md index 77393c1c..43b46337 100644 --- a/cara/apps/calculator/README.md +++ b/cara/apps/calculator/README.md @@ -103,7 +103,7 @@ There are three predefined activities in the tool at present. **Call Centre** = All persons seated, all talking simultaneously, all the time. This is a conservative profile (i.e. will show in increased ``P(i)`` compared to office/meeting) if used for office activity. -**Workshop** = Based on a mechanical assembly workshop, all persons are doing light exercise (standing, moving around, using tools) and talking. Everyone (occupants and infected occupants) is treated the same in this model. +**Workshop** = Based on a mechanical assembly workshop, all persons are standing and talking 50% of the time. Everyone (occupants and infected occupants) is treated the same in this model. **Training** = Based on a typical training course scenario. One individual (the trainer) is doing light exercise (standing) and talking, with all other individuals seated and talking quietly (whispering). diff --git a/cara/apps/calculator/model_generator.py b/cara/apps/calculator/model_generator.py index 9ee7bd20..be46e37b 100644 --- a/cara/apps/calculator/model_generator.py +++ b/cara/apps/calculator/model_generator.py @@ -185,8 +185,11 @@ class FormData: {'Talking': 1, 'Breathing': self.total_people - 1} ), 'callcentre': ('Seated', 'Talking'), - 'training': ('Light exercise', 'Talking'), - 'workshop': ('Light exercise', 'Talking'), + 'training': ('Standing', 'Talking'), + 'workshop': ( + 'Standing', + #Model 1/2 of time spent talking in a workshop. + {'Talking': 1, 'Breathing': 1}) } [activity_defn, expiration_defn] = scenario_activity_and_expiration[self.activity_type] @@ -210,8 +213,8 @@ class FormData: 'office': 'Seated', 'meeting': 'Seated', 'callcentre': 'Seated', - 'training': 'Light exercise', - 'workshop': 'Light exercise', + 'training': 'Seated', + 'workshop': 'Standing', } activity_defn = scenario_activity[self.activity_type] diff --git a/cara/apps/calculator/templates/calculator.form.html.j2 b/cara/apps/calculator/templates/calculator.form.html.j2 index 682dce11..cfebb470 100644 --- a/cara/apps/calculator/templates/calculator.form.html.j2 +++ b/cara/apps/calculator/templates/calculator.form.html.j2 @@ -196,7 +196,7 @@ Ventilation data: