Microgrid.load#
- classmethod Microgrid.load(stream)[source]#
Load a microgrid from a yaml buffer.
Supports both strings of YAML or YAML stored in a path-like object.
Parameters#
- streamstr or file-like object
YAML document. Can be either a string of loaded YAML or a stream to a local file containing a YAML document.
Returns#
Microgrid : the loaded microgrid.