save#

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

Convenience method for sc.saveobj() and equivalent to cv.Sim.save() or cv.Scenarios.save().

Parameters:
  • filename (str) – file to save to

  • obj (object) – object to save

  • args (list) – passed to sc.saveobj()

  • kwargs (dict) – passed to sc.saveobj()

Returns:

Filename the object is saved to

Examples:

cv.save('calib.sim', sim) # Equivalent to sim.save('calib.sim')
cv.save(filename='school-closures.scens', folder='schools', obj=scens)