sunpeek.common.config_parser.make_full_plant#

sunpeek.common.config_parser.make_full_plant(conf, session=None)#

Create a Plant from a configuration dictionary.

Parameters:
  • conf (dict) – Configuration dictionary containing plant specification. May include ‘collectors’ and ‘plant’ keys at the top level, or plant configuration directly.

  • session (sqlalchemy.orm.Session, optional) – Database session. If provided, the plant is added to the session.

Returns:

The created Plant instance.

Return type:

cmp.Plant

Raises:

ConfigurationError – If collector test_type is not ‘SST’ or ‘QDT’.