From 3e4aa09eee0d9b37b8713ee3b9eecf1583f1103f Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Tue, 1 Feb 2022 09:30:41 +0100 Subject: [PATCH] Moved SAMPLE_SIZE and TOLERANCE to the respective test where they are used --- cara/tests/apps/calculator/test_model_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cara/tests/apps/calculator/test_model_generator.py b/cara/tests/apps/calculator/test_model_generator.py index b9c5a852..5cc9e409 100644 --- a/cara/tests/apps/calculator/test_model_generator.py +++ b/cara/tests/apps/calculator/test_model_generator.py @@ -13,8 +13,6 @@ from cara.monte_carlo.data import expiration_distributions # TODO: seed better the random number generators np.random.seed(2000) -SAMPLE_SIZE = 250000 -TOLERANCE = 0.02 def test_model_from_dict(baseline_form_data): form = model_generator.FormData.from_dict(baseline_form_data) @@ -35,6 +33,8 @@ def test_model_from_dict_invalid(baseline_form_data): ] ) def test_blend_expiration(mask_type): + SAMPLE_SIZE = 250000 + TOLERANCE = 0.02 blend = {'Breathing': 2, 'Speaking': 1} r = model_generator.build_expiration(blend).build_model(SAMPLE_SIZE) mask = models.Mask.types[mask_type]