Skip to content

Commit 8d2cdcb

Browse files
changed p.current_hospitalized to 1 on line 58
1 parent 03691bd commit 8d2cdcb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/penn_chime/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def __init__(self, p: Parameters):
3636
n_days_since = (p.current_date - p.date_first_hospitalized).days
3737
logger.debug(
3838
"%s: %s - %s = %s days",
39-
datetime.now(),
4039
p.current_date, p.date_first_hospitalized,
4140
n_days_since)
4241
self.n_days_since = n_days_since
@@ -55,7 +54,7 @@ def __init__(self, p: Parameters):
5554
# We're appoximating infected from what we do know.
5655
# TODO market_share > 0, hosp_rate > 0
5756
infected = (
58-
p.current_hospitalized / p.market_share / p.hospitalized.rate
57+
1 / p.market_share / p.hospitalized.rate
5958
)
6059

6160
susceptible = p.population - infected

0 commit comments

Comments
 (0)