earthrise-media / covid-model

Compartmental model with age cohorts
https://earthrise.media
1 stars 1 forks source link

streamlit.number_input doesn't allow increments finer than .01 #5

Open eboyda opened 4 years ago

eboyda commented 4 years ago

When I change step=0.01 to step=0.001, the input form ceases to function. .01 is actually a very large minimum infection rate (e.g. 3x larger than current confirmed infections in the US - although there are indications the actual infection rate is much higher than confirmed cases would indicate). It would be good to have the option to tune this down to, say, .0001.

One downstream effect of a large initial infection rate is that a secondary infection wave gets suppressed because a such a large proportion of the population gets infected in the first wave.

eboyda commented 4 years ago

Tentatively resolved on branch feature/simpleappv2 by switching from proportions to percents (so can do smaller fractions like 0.1%, 0.01%, etc.)