From 8d2d846492545135e471df4ff0e69576655a0150 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Thu, 13 Jan 2022 11:23:54 +0100 Subject: [PATCH] oneoverln2 declaration changed location on models.py --- cara/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cara/models.py b/cara/models.py index 3cedbf22..dcf4eb78 100644 --- a/cara/models.py +++ b/cara/models.py @@ -50,8 +50,6 @@ from .utils import method_cache from .dataclass_utils import nested_replace -oneoverln2 = 1 / np.log(2) - # Define types for items supporting vectorisation. In the future this may be replaced # by ``np.ndarray[]`` once/if that syntax is supported. Note that vectorization # implies 1d arrays: multi-dimensional arrays are not supported. @@ -1109,6 +1107,7 @@ class ExposureModel: ) # oneoverln2 multiplied by ID_50 corresponds to ID_63. + oneoverln2 = 1 / np.log(2) infectious_dose = oneoverln2 * self.concentration_model.virus.infectious_dose # Probability of infection.