diff_summaries#

class diff_summaries(sim1, sim2, skip_key_diffs=False, output=False, die=False)[source]#

Compute the difference of the summaries of two FPsim calibration objects, and print any values which differ.

Parameters:
  • sim1 (sim/dict) – the calib.summary dictionary, representing a single sim

  • sim2 (sim/dict) – ditto

  • skip_key_diffs (bool) – whether to skip keys that don’t match between sims

  • output (bool) – whether to return the output as a string (otherwise print)

  • die (bool) – whether to raise an exception if the sims don’t match

  • require_run (bool) – require that the simulations have been run

Example:

c1 = fp.Calibration()
c2 = fp.Calibration()
c1.run()
c2.run()
fp.diff_summaries(c1.summarize(), c2.summarize())