test_exposure_model values adjustments

This commit is contained in:
Luis Aleixo 2021-08-04 14:07:01 +02:00
parent 5ddddf10f8
commit f614027b02

View file

@ -70,20 +70,20 @@ def known_concentrations(func):
@pytest.mark.parametrize( @pytest.mark.parametrize(
"population, cm, f_dep, expected_exposure, expected_probability",[ "population, cm, f_dep, expected_exposure, expected_probability",[
[populations[1], known_concentrations(lambda t: 1.2), 1., [populations[1], known_concentrations(lambda t: 36), 1.,
np.array([14.4, 14.4]), np.array([17.4296889121, 16.292365501])], #(1 - e**(-(0.57*(1-0.35)*14.4)/30))*100 np.array([432, 432]), np.array([99.6803184113, 99.5181053773])],
[populations[2], known_concentrations(lambda t: 1.2), 1., [populations[2], known_concentrations(lambda t: 36), 1.,
np.array([14.4, 14.4]), np.array([11.5205620042, 12.7855362382])], np.array([432, 432]), np.array([97.4574432074, 98.3493482895])],
[populations[0], known_concentrations(lambda t: np.array([1.2, 2.4])), 1., [populations[0], known_concentrations(lambda t: np.array([36, 72])), 1.,
np.array([14.4, 28.8]), np.array([12.7855362382, 23.9363731074])], np.array([432, 864]), np.array([98.3493482895, 99.9727534893])],
[populations[1], known_concentrations(lambda t: np.array([1.2, 2.4])), 1., [populations[1], known_concentrations(lambda t: np.array([36, 72])), 1.,
np.array([14.4, 28.8]), np.array([17.4296889121, 29.9303192658])], np.array([432, 864]), np.array([99.6803184113, 99.9976777757])],
[populations[0], known_concentrations(lambda t: 2.4), np.array([0.5, 1.]), [populations[0], known_concentrations(lambda t: 72), np.array([0.5, 1.]),
28.8, np.array([12.7855362382, 23.9363731074])], 864, np.array([98.3493482895, 99.9727534893])],
]) ])
def test_exposure_model_ndarray(population, cm, f_dep, def test_exposure_model_ndarray(population, cm, f_dep,
expected_exposure, expected_probability): expected_exposure, expected_probability):