Beispiel #1
0
    hidden=False)
contagious_delay_pars = {
    'mean':
    Parameter('cont_delay_mean', 5., 0., 50.,
              'mean time from being infected to becoming contagious'),
    'sigma':
    Parameter(
        'cont_delay_sigma', 3., 0.01, 20.,
        'standard deviation of times from being infected to becoming contagious'
    )
}

contagious_delay = Delay('cont_delay', 'norm', contagious_delay_pars, bc_model)

bc_model.add_connector(
    Propagator('infected to contagious', infected_pop, contagious_pop,
               contagious_frac, contagious_delay))

# The contagious either recover or die
# This split is only used to track the deaths.
# The removal of recoveries/positive tests etc done in a separate path
# oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

recovered_pop = Population('recovered',
                           0,
                           'People who have recovered from the illness ' +
                           'and are therefore no longer susceptible',
                           color='limegreen')
deaths_pop = Population('deaths',
                        0,
                        'people who have died from the illness',
                        hidden=False,