Skip to content

Commit b3321b4

Browse files
authored
Merge pull request #49 from pennsignals/update_defaults
Update defaults
2 parents f07505e + 2e776b3 commit b3321b4

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

app.py

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import streamlit as st
33
import numpy as np
44
import matplotlib
5-
matplotlib.use('Agg')
5+
6+
matplotlib.use("Agg")
67
import matplotlib.pyplot as plt
78

89
hide_menu_style = """
@@ -18,7 +19,7 @@
1819
bucks = 628341
1920
philly = 1581000
2021
S_default = delaware + chester + montgomery + bucks + philly
21-
known_infections = 31
22+
known_infections = 53
2223

2324
# Widgets
2425
initial_infections = st.sidebar.number_input(
@@ -59,7 +60,24 @@
5960

6061
st.title("COVID-19 Hospital Impact Model for Epidemics")
6162
st.markdown(
62-
"""*This tool was developed by the [Predictive Healthcare team](http://predictivehealthcare.pennmedicine.org/) at Penn Medicine. For questions and comments please see our [contact page](http://predictivehealthcare.pennmedicine.org/contact/).*"""
63+
"""*This tool was developed by the [Predictive Healthcare team](http://predictivehealthcare.pennmedicine.org/) at
64+
Penn Medicine. For questions and comments please see our
65+
[contact page](http://predictivehealthcare.pennmedicine.org/contact/). Code can be found on [Github](https://github.com/pennsignals/chime).
66+
Join our [Slack channel](https://codeforphilly.org/chat?channel=covid19-chime-penn) if you would like to get involved!*""")
67+
68+
st.markdown(
69+
"""The estimated number of currently infected individuals is **{total_infections:.0f}**. The **{initial_infections}**
70+
confirmed cases in the region imply a **{detection_prob:.0%}** rate of detection. This is based on current inputs for
71+
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Region size (**{S}**),
72+
and Hospital market share (**{Penn_market_share:.0%}**).""".format(
73+
total_infections=total_infections,
74+
current_hosp=current_hosp,
75+
hosp_rate=hosp_rate,
76+
S=S,
77+
Penn_market_share=Penn_market_share,
78+
initial_infections=initial_infections,
79+
detection_prob=detection_prob,
80+
)
6381
)
6482

6583
if st.checkbox("Show more info about this tool"):
@@ -104,15 +122,12 @@
104122
- Chester = {chester}
105123
- Montgomery = {montgomery}
106124
- Bucks = {bucks}
107-
- Philly = {philly}
108-
- The initial number of infected will be the total number of confirmed cases in the area ({initial_infections}), divided by some detection probability to account for under testing {detection_prob:.2f}.""".format(
125+
- Philly = {philly}""".format(
109126
delaware=delaware,
110127
chester=chester,
111128
montgomery=montgomery,
112129
bucks=bucks,
113130
philly=philly,
114-
initial_infections=initial_infections,
115-
detection_prob=detection_prob,
116131
)
117132
)
118133

0 commit comments

Comments
 (0)