modified activity types

This commit is contained in:
Luis Aleixo 2024-01-31 11:50:29 +01:00
parent 7199143257
commit 38376857fa
2 changed files with 2 additions and 2 deletions

View file

@ -413,7 +413,7 @@ class VirusFormData(FormData):
expiration_defn = self.data_registry.population_scenario_activity[self.activity_type]['expiration']
if (self.activity_type == 'smallmeeting'):
# Conversation of N people is approximately 1/N% of the time speaking.
expiration_defn['Breathing'] = self.total_people - 1
expiration_defn = {'Speaking': 1, 'Breathing': self.total_people - 1}
elif (self.activity_type == 'precise'):
activity_defn, expiration_defn = self.generate_precise_activity_expiration()

View file

@ -443,7 +443,7 @@ class DataRegistry:
"activity": "Seated",
"expiration": {"Breathing": 1, "Speaking": 9},
},
"precise": {},
"precise": {"activity": "", "expiration": {}},
}
def update(self, data, version=None):