poliosim.parameters module

Set the parameters for Poliosim.

strain_map(key=None, reverse=False)[source]

Map from strain number to string

make_pars(set_prognoses=False, **kwargs)[source]

Create the parameters for the simulation. Typically, this function is used internally rather than called by the user; e.g. typical use would be to do sim = ps.Sim() and then inspect sim.pars, rather than calling this function directly.

Parameters
  • set_prognoses (bool) – whether or not to create prognoses (else, added when the population is created)

  • kwargs (dict) – any additional kwargs are interpreted as parameter names

Returns

the parameters of the simulation

Return type

pars (dict)