File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 7
7
# additional_projections_chart,
8
8
display_header ,
9
9
display_sidebar ,
10
- display_n_days_slider ,
10
+ display_n_days_input ,
11
11
draw_census_table ,
12
12
draw_projected_admissions_table ,
13
13
draw_raw_sir_simulation_table ,
42
42
# PRESENTATION
43
43
# Two more combination variable initialization / input element creation
44
44
as_date = st .checkbox (label = "Present result as dates instead of days" , value = False )
45
- display_n_days_slider (st , p , DEFAULTS )
45
+ display_n_days_input (st , p , DEFAULTS )
46
46
47
47
# begin format data
48
48
admissions_df = build_admissions_df (p = p ) # p.n_days, *p.dispositions)
Original file line number Diff line number Diff line change @@ -226,14 +226,13 @@ def display_sidebar(st, d: Constants) -> Parameters:
226
226
)
227
227
228
228
229
- def display_n_days_slider (st , p : Parameters , d : Constants ):
230
- """Display n_days_slider ."""
231
- p .n_days = st .slider (
229
+ def display_n_days_input (st , p : Parameters , d : Constants ):
230
+ """Display n_days_input ."""
231
+ p .n_days = st .number_input (
232
232
"Number of days to project" ,
233
233
min_value = 30 ,
234
- max_value = 200 ,
235
234
value = d .n_days ,
236
- step = 1 ,
235
+ step = 10 ,
237
236
format = "%i" ,
238
237
)
239
238
You can’t perform that action at this time.
0 commit comments