Skip to content

Commit 59ca9be

Browse files
fixed order of sidebar stuff
1 parent bd788e6 commit 59ca9be

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/app.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,27 @@
3131
"""*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/).*"""
3232
)
3333

34+
3435
# Get the input
35-
Penn_market_share = _Penn_market_share()
3636
initial_infections = _initial_infections()
37+
current_hosp = _current_hosp()
3738
doubling_time = _doubling_time()
3839
hosp_rate = _hosp_rate()
39-
vent_rate = _vent_rate()
4040
icu_rate = _icu_rate()
41-
S = _S()
42-
current_hosp = _current_hosp()
43-
detection_prob = _detection_prob(initial_infections, current_hosp, Penn_market_share, hosp_rate)
41+
vent_rate = _vent_rate()
4442
hosp_los = _hosp_los()
4543
icu_los = _icu_los()
4644
vent_los = _vent_los()
47-
n_days = st.slider("Number of days to project", 30, 200, 60, 1, "%i")
48-
45+
Penn_market_share = _Penn_market_share()
46+
S = _S()
4947

48+
detection_prob = _detection_prob(initial_infections, current_hosp, Penn_market_share, hosp_rate)
5049
if st.checkbox("Show more info about this tool"):
5150
show_more_info_about_this_tool(initial_infections, detection_prob)
5251

52+
n_days = st.slider("Number of days to project", 30, 200, 60, 1, "%i")
53+
54+
5355
st.subheader("New Admissions")
5456
st.markdown("Projected number of **daily** COVID-19 admissions at Penn hospitals")
5557

0 commit comments

Comments
 (0)