parallel#
- class parallel(*args, **kwargs)[source]#
A shortcut to
hpv.MultiSim()
, allowing the quick running of multiple simulations at once.- Parameters:
args (list) – The simulations to run
kwargs (dict) – passed to multi_run()
- Returns:
A run MultiSim object.
Examples:
s1 = hpv.Sim(beta=0.01, label='Low') s2 = hpv.Sim(beta=0.02, label='High') hpv.parallel(s1, s2).plot() msim = hpv.parallel([s1, s2], keep_people=True)