Skip to content

Commit b8f5e45

Browse files
committed
test: Use parameter values rather than fixed constants to generalize test to all cases
1 parent 22a6248 commit b8f5e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/penn_chime/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,6 @@ def test_model_cumulative_census(param, model):
196196

197197
# TODO: is 1.0 for ceil function?
198198
diff = admits.hospitalized[1:-1] - (
199-
0.05 * 0.05 * (raw_df.infected[1:-1] + raw_df.recovered[1:-1]) - 1.0
199+
param.market_share * param.hospitalized.rate * (raw_df.infected[1:-1] + raw_df.recovered[1:-1]) - 1.0
200200
)
201201
assert (diff.abs() < 0.1).all()

0 commit comments

Comments
 (0)