From d26218c7e5646094e9c91bf7d25de2c1233d43c3 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Fri, 28 Jul 2023 10:34:21 +0200 Subject: [PATCH] Inputing arguments as keywords in populations definition, in test_exposure_model --- caimira/tests/models/test_exposure_model.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/caimira/tests/models/test_exposure_model.py b/caimira/tests/models/test_exposure_model.py index 60b0bdef..bfe59c1c 100644 --- a/caimira/tests/models/test_exposure_model.py +++ b/caimira/tests/models/test_exposure_model.py @@ -40,18 +40,18 @@ def _normed_concentration(self, time: float) -> models._VectorisedFloat: # noqa populations = [ # A simple scalar population. models.Population( - 10, halftime, models.Activity.types['Standing'], - models.Mask.types['Type I'], host_immunity=0., + 10, halftime, activity=models.Activity.types['Standing'], + mask=models.Mask.types['Type I'], host_immunity=0., ), # A population with some array component for η_inhale. models.Population( - 10, halftime, models.Activity.types['Standing'], - models.Mask(np.array([0.3, 0.35])), host_immunity=0. + 10, halftime, activity=models.Activity.types['Standing'], + mask=models.Mask(np.array([0.3, 0.35])), host_immunity=0. ), # A population with some array component for inhalation_rate. models.Population( - 10, halftime, models.Activity(np.array([0.51, 0.57]), 0.57), - models.Mask.types['Type I'], host_immunity=0. + 10, halftime, activity=models.Activity(np.array([0.51, 0.57]), 0.57), + mask=models.Mask.types['Type I'], host_immunity=0. ), ]