save#

save(filename, obj, **kwargs)[source]#

Alias to Sciris sc.save()

While some Starsim objects have their own save methods, this function can be used to save any arbitrary object. It can then be loaded with ss.load().

Parameters:
  • filename (str/path) – the name of the file to save

  • obj (any) – the object to save

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