File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,11 @@ def display_sidebar(st, d: Parameters) -> Parameters:
220
220
step = 1.0 ,
221
221
)
222
222
hospitalized_pct_input = PercentInput (
223
- st_obj , "Hospitalization %(total infections)" , value = d .hospitalized .rate ,
223
+ st_obj ,
224
+ "Hospitalization %(total infections)" ,
225
+ value = d .hospitalized .rate ,
226
+ min_value = FLOAT_INPUT_MIN ,
227
+ max_value = 100.0
224
228
)
225
229
icu_pct_input = PercentInput (st_obj ,
226
230
"ICU %(total infections)" ,
@@ -234,23 +238,23 @@ def display_sidebar(st, d: Parameters) -> Parameters:
234
238
hospitalized_days_input = NumberInput (
235
239
st_obj ,
236
240
"Average hospital length of stay (in days)" ,
237
- min_value = 0 ,
241
+ min_value = 1 ,
238
242
value = d .hospitalized .days ,
239
243
step = 1 ,
240
244
format = "%i" ,
241
245
)
242
246
icu_days_input = NumberInput (
243
247
st_obj ,
244
248
"Average days in ICU" ,
245
- min_value = 0 ,
249
+ min_value = 1 ,
246
250
value = d .icu .days ,
247
251
step = 1 ,
248
252
format = "%i" ,
249
253
)
250
254
ventilated_days_input = NumberInput (
251
255
st_obj ,
252
256
"Average days on ventilator" ,
253
- min_value = 0 ,
257
+ min_value = 1 ,
254
258
value = d .ventilated .days ,
255
259
step = 1 ,
256
260
format = "%i" ,
@@ -272,7 +276,7 @@ def display_sidebar(st, d: Parameters) -> Parameters:
272
276
infectious_days_input = NumberInput (
273
277
st_obj ,
274
278
"Infectious days" ,
275
- min_value = 0 ,
279
+ min_value = 1 ,
276
280
value = d .infectious_days ,
277
281
step = 1 ,
278
282
format = "%i" ,
You can’t perform that action at this time.
0 commit comments