From 7bab71653262e394e98307b8586e28a236f03359 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Fri, 23 Jul 2021 15:11:19 +0200 Subject: [PATCH] added @cached to integrated_concentrations method --- cara/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cara/models.py b/cara/models.py index 93785d1d..27bd965a 100644 --- a/cara/models.py +++ b/cara/models.py @@ -839,6 +839,7 @@ class ConcentrationModel: fac = np.exp(-IVRR * delta_time) return concentration_limit * (1 - fac) + concentration_at_last_state_change * fac + @cached() def integrated_concentration(self, start: float, stop: float) -> _VectorisedFloat: """ Get the integrated concentration dose between the times start and stop.