check_sims_match#

check_sims_match(*args, full=False)[source]#

Shortcut to using ss.diff_sims() to check if multiple sims match

Parameters:
  • args (list) – a list of 2 or more sims to compare

  • full (bool) – if True, return whether each sim matches the first

Example:

s1 = ss.Sim(diseases='sir', networks='random')
s2 = ss.Sim(pars=dict(diseases='sir', networks='random'))
s3 = ss.Sim(diseases=ss.SIR(), networks=ss.RandomNet())
assert ss.check_sims_match(s1, s2, s3)