Skip to content

Commit d4be8e5

Browse files
authored
Merge pull request #510 from CodeForPhilly/PhilMiller/test-improvements
Phil miller/test improvements
2 parents 1d85c99 + f00b02a commit d4be8e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/penn_chime/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def test_model_cumulative_census(param, model):
194194
)
195195
admits = df.cumsum()
196196

197-
# TODO: is 1.0 for ceil function?
197+
# 1.0 is for the one hospital patient on the first day, who won't appear in the admissions
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)