parallel#

class parallel(*args, **kwargs)[source]#

A shortcut to cv.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 = cv.Sim(beta=0.01, label='Low')
s2 = cv.Sim(beta=0.02, label='High')
cv.parallel(s1, s2).plot()
msim = cv.parallel([s1, s2], keep_people=True)

New in version 3.1.1.