Skip to content

Commit 2f96066

Browse files
authored
Cleanup text
Text cleanup in sidebar and main page
2 parents a933752 + d5228e4 commit 2f96066

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

src/chime_dash/app/templates/en/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The estimated number of currently infected individuals is **{total_infections:.0f}**. This is based on current inputs for
2-
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Region size (**{S}**),
2+
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Regional population (**{S}**),
33
and Hospital market share (**{market_share:.0%}**).
44

55
{infected_population_warning_str}

src/chime_dash/app/templates/en/sidebar.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
hospital_parameters: Hospital Parameters
2-
population: Regional Population
3-
market_share: Hospital Market Share (%)
4-
current_hospitalized: Currently Hospitalized COVID-19 Patients
2+
population: Regional population
3+
market_share: Hospital market share (%)
4+
current_hospitalized: Currently hospitalized COVID-19 patients
55

66
spread_parameters: Spread and Contact Parameters
7-
date_first_hospitalized: Date of first hospitalized case - Enter this date to have chime estimate the initial doubling time
7+
date_first_hospitalized: Date of first hospitalized case (enter this date to have CHIME estimate the initial doubling time)
88
doubling_time: Doubling time in days (up to today. This overwrites date of first hospitalized estimation)
99
relative_contact_rate: Social distancing (% reduction in social contact going forward)
1010

1111
severity_parameters: Severity Parameters
12-
hospitalized_rate: Hospitalization %(total infections)
13-
icu_rate: ICU %(total infections)
14-
ventilated_rate: Ventilated %(total infections)
15-
infectious_days: Infectious Days
16-
hospitalized_los: Average Hospital Length of Stay (days)
17-
icu_los: Average Days in ICU
18-
ventilated_los: Average Days on Ventilator
12+
hospitalized_rate: Hospitalization rate (% of total infections)
13+
icu_rate: ICU (% of total infections)
14+
ventilated_rate: Ventilated (% of total infections)
15+
infectious_days: Infectious days
16+
hospitalized_los: Average hospital length of stay (in days)
17+
icu_los: Average days in ICU
18+
ventilated_los: Average days on ventilator
1919

20-
display_parameters: Display parameters
20+
display_parameters: Display Parameters
2121
n_days: Number of days to project
22-
current_date: Current date (Default is today)
22+
current_date: Current date (default is today)
2323
max_y_axis: Set the Y-axis on graphs to a static
2424
max_y_axis_value: Maximal y-axis value (leave blank for no max value)
2525
show_tables: Show tables with data

src/penn_chime/cli.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def parse_args():
5555
int,
5656
0,
5757
None,
58-
"Currently Hospitalized COVID-19 Patients (>= 0)",
58+
"Currently hospitalized COVID-19 patients (>= 0)",
5959
True,
6060
),
6161
(
@@ -74,7 +74,7 @@ def parse_args():
7474
"Doubling time before social distancing (days)",
7575
True,
7676
),
77-
("--hospitalized-days", int, 0, None, "Average Hospital Length of Stay (days)", True),
77+
("--hospitalized-days", int, 0, None, "Average hospital length of stay (in days)", True),
7878
(
7979
"--hospitalized-rate",
8080
float,
@@ -83,14 +83,14 @@ def parse_args():
8383
"Hospitalized Rate: 0.00001 - 1.0",
8484
True,
8585
),
86-
("--icu-days", int, 0, None, "Average Days in ICU", True),
87-
("--icu-rate", float, 0.0, 1.0, "ICU Rate: 0.0 - 1.0", True),
86+
("--icu-days", int, 0, None, "Average days in ICU", True),
87+
("--icu-rate", float, 0.0, 1.0, "ICU rate: 0.0 - 1.0", True),
8888
(
8989
"--market_share",
9090
float,
9191
0.00001,
9292
1.0,
93-
"Hospital Market Share (0.00001 - 1.0)",
93+
"Hospital market share (0.00001 - 1.0)",
9494
True,
9595
),
9696
("--infectious-days", float, 0.0, None, "Infectious days", True),
@@ -100,11 +100,11 @@ def parse_args():
100100
float,
101101
0.0,
102102
1.0,
103-
"Social Distancing Reduction Rate: 0.0 - 1.0",
103+
"Social distancing reduction rate: 0.0 - 1.0",
104104
True,
105105
),
106-
("--population", int, 1, None, "Regional Population >= 1", True),
107-
("--ventilated-days", int, 0, None, "Average Days on Ventilator", True),
106+
("--population", int, 1, None, "Regional population >= 1", True),
107+
("--ventilated-days", int, 0, None, "Average days on ventilator", True),
108108
("--ventilated-rate", float, 0.0, 1.0, "Ventilated Rate: 0.0 - 1.0", True),
109109
):
110110
parser.add_argument(

src/penn_chime/presentation.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def display_header(st, m, p):
7070

7171
st.markdown(
7272
"""The estimated number of currently infected individuals is **{total_infections:.0f}**. This is based on current inputs for
73-
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Region size (**{S}**),
73+
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Regional population (**{S}**),
7474
and Hospital market share (**{market_share:.0%}**).
7575
7676
{infected_population_warning_str}
@@ -179,7 +179,7 @@ def display_sidebar(st, d: Parameters) -> Parameters:
179179
st_obj = st.sidebar
180180
current_hospitalized_input = NumberInput(
181181
st_obj,
182-
"Currently Hospitalized COVID-19 Patients",
182+
"Currently hospitalized COVID-19 patients",
183183
min_value=0,
184184
value=d.current_hospitalized,
185185
step=1,
@@ -202,10 +202,10 @@ def display_sidebar(st, d: Parameters) -> Parameters:
202202
format="%f",
203203
)
204204
current_date_input = DateInput(
205-
st_obj, "Current date (Default is today)", value=d.current_date,
205+
st_obj, "Current date (default is today)", value=d.current_date,
206206
)
207207
date_first_hospitalized_input = DateInput(
208-
st_obj, "Date of first hospitalized case - Enter this date to have chime estimate the initial doubling time",
208+
st_obj, "Date of first hospitalized case (enter this date to have CHIME estimate the initial doubling time)",
209209
value=d.date_first_hospitalized,
210210
)
211211
mitigation_date_input = DateInput(
@@ -234,45 +234,45 @@ def display_sidebar(st, d: Parameters) -> Parameters:
234234
)
235235
hospitalized_days_input = NumberInput(
236236
st_obj,
237-
"Average Hospital Length of Stay (days)",
237+
"Average hospital length of stay (in days)",
238238
min_value=0,
239239
value=d.hospitalized.days,
240240
step=1,
241241
format="%i",
242242
)
243243
icu_days_input = NumberInput(
244244
st_obj,
245-
"Average Days in ICU",
245+
"Average days in ICU",
246246
min_value=0,
247247
value=d.icu.days,
248248
step=1,
249249
format="%i",
250250
)
251251
ventilated_days_input = NumberInput(
252252
st_obj,
253-
"Average Days on Ventilator",
253+
"Average days on ventilator",
254254
min_value=0,
255255
value=d.ventilated.days,
256256
step=1,
257257
format="%i",
258258
)
259259
market_share_pct_input = PercentInput(
260260
st_obj,
261-
"Hospital Market Share (%)",
261+
"Hospital market share (%)",
262262
min_value=0.5,
263263
value=d.market_share,
264264
)
265265
population_input = NumberInput(
266266
st_obj,
267-
"Regional Population",
267+
"Regional population",
268268
min_value=1,
269269
value=(d.population),
270270
step=1,
271271
format="%i",
272272
)
273273
infectious_days_input = NumberInput(
274274
st_obj,
275-
"Infectious Days",
275+
"Infectious days",
276276
min_value=0,
277277
value=d.infectious_days,
278278
step=1,

0 commit comments

Comments
 (0)