load_model

YmlProjectIo.load_model(file_name: str) Model[source]

Load a Model from a model specification in a yaml file.

Parameters:

file_name (str) – Path to the model file to read.

Raises:
  • ValueError – If megacomplex was not provided in the model specification.

  • ValueError – If default_megacomplex was not provided and any megacomplex is missing the type attribute.

Return type:

Model