We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf38817 commit 4cafcd8Copy full SHA for 4cafcd8
tests/penn_chime/test_models.py
@@ -111,11 +111,11 @@ def test_model_first_hosp_fit(param):
111
112
my_model = SimSirModel(param)
113
114
- assert my_model.intrinsic_growth_rate == 0.1232387953882732
+ assert abs(my_model.intrinsic_growth_rate - 0.123) / 0.123 < 0.01
115
assert abs(my_model.beta - 4.21501347256401e-07) < EPSILON
116
- assert my_model.r_t == 2.316541665120451
117
- assert my_model.r_naught == 2.7253431354358253
118
- assert my_model.doubling_time_t == 7.712255171528787
+ assert abs(my_model.r_t - 2.32) / 2.32 < 0.01
+ assert abs(my_model.r_naught - 2.72) / 2.72 < 0.01
+ assert abs(my_model.doubling_time_t - 7.71)/7.71 < 0.01
119
120
121
def test_model_raw_start(model, param):
0 commit comments