HopkinsIDD/covid-dashboard-app

r0 selection showing fewer sims if there aren't enough as default number to show

Closed this issue · 3 comments

veev commented

this is strange behavior with the numDisplaySims is 30, and you select the r0filter to be 2 - 2.1. In this range, there are fewer than 30 possible to display, and for some reason the random sample selects 7.
image
image (1)

When you select 2.9-3, it shows the default 30 sims (likely because there are enough to show).
image (2)

This bug should be resolved by e63c4a3. Let me know if you still have issues!

FYI, series will always return 'numDisplaySims', unless there aren't enough sins, which is the case for Inference scenario from 2-2.1, then it'll just return that set.

veev commented

Confirming this works! I also added code to Graph that removes simPaths if there are fewer than 'numDisplaySims'