From 35dff3d9ac1eb3cc9b7c32c5a508e23a2880ce89 Mon Sep 17 00:00:00 2001 From: markus Date: Tue, 20 Oct 2020 14:41:11 +0200 Subject: [PATCH] add time as argument to infectious_virus_removal_rate --- cara/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cara/models.py b/cara/models.py index 82052fd9..ca632f6a 100644 --- a/cara/models.py +++ b/cara/models.py @@ -195,8 +195,7 @@ class Model: def virus(self): return self.infected.virus - @property - def infectious_virus_removal_rate(self): + def infectious_virus_removal_rate(self, time: float) -> float: # Particle deposition on the floor vg = 1 * 10 ** -4 # Height of the emission source to the floor - i.e. mouth/nose (m) @@ -209,7 +208,7 @@ class Model: @functools.lru_cache() def concentration(self, time: float) -> float: t = time - IVRR = self.infectious_virus_removal_rate + IVRR = self.infectious_virus_removal_rate(time) V = self.room.volume Ni = self.infected_occupants ER = self.infected.emission_rate(time)