From f99dcc5e0cefa7261ec454b9c0a84aa160c28639 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Fri, 22 Apr 2022 16:50:17 +0200 Subject: [PATCH] Fix wrong emission rate in test_monte_carlo_full_models.py::test_small_shared_office_Geneva; decrease tolerance and number of samples subsequently --- cara/tests/test_monte_carlo_full_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cara/tests/test_monte_carlo_full_models.py b/cara/tests/test_monte_carlo_full_models.py index b97956b9..caed9c52 100644 --- a/cara/tests/test_monte_carlo_full_models.py +++ b/cara/tests/test_monte_carlo_full_models.py @@ -9,8 +9,8 @@ from cara.apps.calculator.model_generator import build_expiration # TODO: seed better the random number generators np.random.seed(2000) -SAMPLE_SIZE = 600_000 -TOLERANCE = 0.06 +SAMPLE_SIZE = 500_000 +TOLERANCE = 0.05 # Load the weather data (temperature in kelvin) for Toronto. toronto_coordinates = (43.667, 79.400) @@ -342,7 +342,7 @@ def test_report_models(mc_model, expected_pi, expected_new_cases, ["No mask", "Jul", 9.52, 9.920, 809], ["Type I", "Jul", 1.7, 0.913, 149], ["FFP2", "Jul", 0.51, 0.239, 149], - ["Type I", "Feb", 0.57, 0.272, 162], + ["Type I", "Feb", 0.57, 0.272, 149], ], ) def test_small_shared_office_Geneva(mask_type, month, expected_pi,