From 34ad2af425fb995d86a4dec7bcc1377c463d3f25 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Thu, 4 Nov 2021 16:41:26 +0100 Subject: [PATCH] Evaporation factor default value is back --- cara/models.py | 2 +- cara/tests/models/test_exposure_model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cara/models.py b/cara/models.py index b64eea7d..b7c1ff95 100644 --- a/cara/models.py +++ b/cara/models.py @@ -777,7 +777,7 @@ class ConcentrationModel: #: evaporation factor: the particles' diameter is multiplied by this # factor as soon as they are in the air (but AFTER going out of the, # mask, if any). - evaporation_factor: float #= 0.3 + evaporation_factor: float = 0.3 @property def virus(self): diff --git a/cara/tests/models/test_exposure_model.py b/cara/tests/models/test_exposure_model.py index c65b0990..bdde0129 100644 --- a/cara/tests/models/test_exposure_model.py +++ b/cara/tests/models/test_exposure_model.py @@ -17,7 +17,7 @@ class KnownNormedconcentration(models.ConcentrationModel): which therefore doesn't need other components. Useful for testing. """ - normed_concentration_function: typing.Callable + normed_concentration_function: typing.Callable = lambda x: 0 def infectious_virus_removal_rate(self, time: float) -> models._VectorisedFloat: # very large decay constant -> same as constant concentration