You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the tolerance for coverage is set to 5% in the test.
if not math.isclose(actual_vax_coverage, expected_coverage, abs_tol=0.05): # we allow 5% difference
self.success = False
outfile.write(
f" BAD: at time step {self.campaign_obj['Start_Day'][2]}, vax coverage {actual_vax_coverage}, expected {expected_coverage}.\n")
outfile.write("Result is False.\n")
else:
self.success = True
outfile.write("GOOD: coverage is correct!\n")
outfile.write("Result is True.\n")
Tested with emod_typhoid-0.0.7.dev3.
Comps link: https://comps2.idmod.org/#explore/Simulations?filters=ExperimentId=b029026d-5798-ee11-92fe-f0921c167864&offset=0&count=100&selectedId=b329026d-5798-ee11-92fe-f0921c167864
Tests for other coverage values(0.5-1) work fine except these 2;
The text was updated successfully, but these errors were encountered: