save#
- class save(*args, **kwargs)[source]#
Convenience method for sc.saveobj() and equivalent to hpv.Sim.save() or hpv.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:
hpv.save('calib.sim', sim) # Equivalent to sim.save('calib.sim') hpv.save(filename='school-closures.scens', folder='schools', obj=scens)