coarsen trapz grid
This commit is contained in:
parent
83aaaefab9
commit
c7546cec40
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue