Skip to content

Commit 63d34f6

Browse files
author
Michael Becker
committed
presentation: Support floating point input
1 parent fa2ec9c commit 63d34f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/penn_chime/presentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def display_sidebar(st, d: Constants) -> Parameters:
122122
"Social distancing (% reduction in social contact)",
123123
min_value=0,
124124
max_value=100,
125-
value=d.relative_contact_rate * 100,
125+
value=int(d.relative_contact_rate * 100),
126126
step=5,
127127
format="%i",
128128
)

0 commit comments

Comments
 (0)