From c7546cec40e3ac73333593216556264162ccf010 Mon Sep 17 00:00:00 2001 From: markus Date: Fri, 19 Feb 2021 19:01:29 +0100 Subject: [PATCH] coarsen trapz grid --- cara/montecarlo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/montecarlo.py b/cara/montecarlo.py index eff31eef..f68c5f67 100644 --- a/cara/montecarlo.py +++ b/cara/montecarlo.py @@ -358,7 +358,7 @@ class MCExposureModel: exposure = np.zeros(self.concentration_model.infected.samples) for start, stop in self.exposed.presence.boundaries(): - times = np.arange(start, stop, 0.01) + times = np.arange(start, stop, 0.05) concentrations = np.asarray([self.concentration_model.concentration(t) for t in times]) integrals = np.trapz(concentrations, times, axis=0) exposure += integrals