Used cached method to calculate background concentration

This commit is contained in:
Luis Aleixo 2022-03-03 15:46:14 +01:00
parent 31bb648d1c
commit 7926f55872

View file

@ -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