load#

load(filename, **kwargs)[source]#

Alias to Sciris sc.loadany()

Since Starsim uses Sciris for saving objects, they can be loaded back using this function. This can also be used to load other objects of known type (e.g. JSON), although this usage is discouraged.

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

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

Returns:

The loaded object