Skip to content

Commit 398cde4

Browse files
author
Eric Smyth
committed
Fix typo in calculation of mitigated daily growth
1 parent cdf05b0 commit 398cde4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/penn_chime/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103
self.n_days = n_days
104104

105105
self.daily_growth = daily_growth_helper(self.doubling_time)
106-
self.daily_growth_t = power(2, 1.9 / self.doubling_time_t)
106+
self.daily_growth_t = daily_growth_helper(self.doubling_time_t)
107107

108108
@property
109109
def n_days(self):

tests/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_the_rest_of_header_shows_up():
7474
def test_daily_growth():
7575
st.cleanup()
7676
initial_growth = "and daily growth rate of **12.25%**."
77-
mitigated_growth = "and daily growth rate of **1.18%**."
77+
mitigated_growth = "and daily growth rate of **9.34%**."
7878
display_header(st, PARAM)
7979
assert len((list(filter(lambda s: initial_growth in s, st.render_store))))
8080
assert len((list(filter(lambda s: mitigated_growth in s, st.render_store))))

0 commit comments

Comments
 (0)