From f614027b020ce2c83cadce6009b5cde6939e57c4 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Wed, 4 Aug 2021 14:07:01 +0200 Subject: [PATCH] test_exposure_model values adjustments --- cara/tests/models/test_exposure_model.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cara/tests/models/test_exposure_model.py b/cara/tests/models/test_exposure_model.py index 22b1abe6..bd3ced32 100644 --- a/cara/tests/models/test_exposure_model.py +++ b/cara/tests/models/test_exposure_model.py @@ -70,20 +70,20 @@ def known_concentrations(func): @pytest.mark.parametrize( "population, cm, f_dep, expected_exposure, expected_probability",[ - [populations[1], known_concentrations(lambda t: 1.2), 1., - np.array([14.4, 14.4]), np.array([17.4296889121, 16.292365501])], #(1 - e**(-(0.57*(1-0.35)*14.4)/30))*100 + [populations[1], known_concentrations(lambda t: 36), 1., + np.array([432, 432]), np.array([99.6803184113, 99.5181053773])], - [populations[2], known_concentrations(lambda t: 1.2), 1., - np.array([14.4, 14.4]), np.array([11.5205620042, 12.7855362382])], + [populations[2], known_concentrations(lambda t: 36), 1., + np.array([432, 432]), np.array([97.4574432074, 98.3493482895])], - [populations[0], known_concentrations(lambda t: np.array([1.2, 2.4])), 1., - np.array([14.4, 28.8]), np.array([12.7855362382, 23.9363731074])], + [populations[0], known_concentrations(lambda t: np.array([36, 72])), 1., + np.array([432, 864]), np.array([98.3493482895, 99.9727534893])], - [populations[1], known_concentrations(lambda t: np.array([1.2, 2.4])), 1., - np.array([14.4, 28.8]), np.array([17.4296889121, 29.9303192658])], + [populations[1], known_concentrations(lambda t: np.array([36, 72])), 1., + np.array([432, 864]), np.array([99.6803184113, 99.9976777757])], - [populations[0], known_concentrations(lambda t: 2.4), np.array([0.5, 1.]), - 28.8, np.array([12.7855362382, 23.9363731074])], + [populations[0], known_concentrations(lambda t: 72), np.array([0.5, 1.]), + 864, np.array([98.3493482895, 99.9727534893])], ]) def test_exposure_model_ndarray(population, cm, f_dep, expected_exposure, expected_probability):