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.
2 parents 1d85c99 + f00b02a commit d4be8e5Copy full SHA for d4be8e5
tests/penn_chime/test_models.py
@@ -194,8 +194,8 @@ def test_model_cumulative_census(param, model):
194
)
195
admits = df.cumsum()
196
197
- # TODO: is 1.0 for ceil function?
+ # 1.0 is for the one hospital patient on the first day, who won't appear in the admissions
198
diff = admits.hospitalized[1:-1] - (
199
- 0.05 * 0.05 * (raw_df.infected[1:-1] + raw_df.recovered[1:-1]) - 1.0
+ param.market_share * param.hospitalized.rate * (raw_df.infected[1:-1] + raw_df.recovered[1:-1]) - 1.0
200
201
assert (diff.abs() < 0.1).all()
0 commit comments