Skip to content

Commit

Permalink
relaxing tolerances on conditional prob. test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmounet committed Sep 1, 2023
1 parent f8530d4 commit 82f4e14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions caimira/tests/test_conditional_probability.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def baseline_exposure_model():
)


@retry(tries=2)
@retry(tries=3)
def test_conditional_prob_inf_given_vl_dist(baseline_exposure_model):

viral_loads = np.array([3., 5., 7., 9.,])
Expand Down Expand Up @@ -72,6 +72,6 @@ def test_conditional_prob_inf_given_vl_dist(baseline_exposure_model):
report_generator.conditional_prob_inf_given_vl_dist(infection_probability, viral_loads, specific_vl, step)
)

assert np.allclose(actual_pi_means, expected_pi_means, atol=0.001)
assert np.allclose(actual_lower_percentiles, expected_lower_percentiles, atol=0.001)
assert np.allclose(actual_upper_percentiles, expected_upper_percentiles, atol=0.001)
assert np.allclose(actual_pi_means, expected_pi_means, atol=0.002)
assert np.allclose(actual_lower_percentiles, expected_lower_percentiles, atol=0.002)
assert np.allclose(actual_upper_percentiles, expected_upper_percentiles, atol=0.002)

0 comments on commit 82f4e14

Please sign in to comment.