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 @@ -217,7 +217,11 @@ def display_sidebar(st, d: Parameters) -> Parameters:
217
217
step = 1.0 ,
218
218
)
219
219
hospitalized_pct_input = PercentInput (
220
- st_obj , "Hospitalization %(total infections)" , value = d .hospitalized .rate ,
220
+ st_obj ,
221
+ "Hospitalization %(total infections)" ,
222
+ value = d .hospitalized .rate ,
223
+ min_value = FLOAT_INPUT_MIN ,
224
+ max_value = 100.0
221
225
)
222
226
icu_pct_input = PercentInput (st_obj ,
223
227
"ICU %(total infections)" ,
@@ -231,23 +235,23 @@ def display_sidebar(st, d: Parameters) -> Parameters:
231
235
hospitalized_days_input = NumberInput (
232
236
st_obj ,
233
237
"Average hospital length of stay (in days)" ,
234
- min_value = 0 ,
238
+ min_value = 1 ,
235
239
value = d .hospitalized .days ,
236
240
step = 1 ,
237
241
format = "%i" ,
238
242
)
239
243
icu_days_input = NumberInput (
240
244
st_obj ,
241
245
"Average days in ICU" ,
242
- min_value = 0 ,
246
+ min_value = 1 ,
243
247
value = d .icu .days ,
244
248
step = 1 ,
245
249
format = "%i" ,
246
250
)
247
251
ventilated_days_input = NumberInput (
248
252
st_obj ,
249
253
"Average days on ventilator" ,
250
- min_value = 0 ,
254
+ min_value = 1 ,
251
255
value = d .ventilated .days ,
252
256
step = 1 ,
253
257
format = "%i" ,
@@ -269,7 +273,7 @@ def display_sidebar(st, d: Parameters) -> Parameters:
269
273
infectious_days_input = NumberInput (
270
274
st_obj ,
271
275
"Infectious days" ,
272
- min_value = 0 ,
276
+ min_value = 1 ,
273
277
value = d .infectious_days ,
274
278
step = 1 ,
275
279
format = "%i" ,
You can’t perform that action at this time.
0 commit comments