From 7926f55872fe2f856c799ab8aef328b06659ff3b Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Thu, 3 Mar 2022 15:46:14 +0100 Subject: [PATCH] Used cached method to calculate background concentration --- cara/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/models.py b/cara/models.py index 2032aff2..7addbaa8 100644 --- a/cara/models.py +++ b/cara/models.py @@ -1032,7 +1032,7 @@ class ConcentrationModel: Note that time is not vectorised. You can only pass a single float to this method. """ - return (self._normed_concentration(time) * + return (self._normed_concentration_cached(time) * self.infected.emission_rate_when_present()) @method_cache