sunpeek.common.config_parser.make_plant_from_config_file#

sunpeek.common.config_parser.make_plant_from_config_file(config_path, session=None)#

Create a Plant from a JSON configuration file.

Parameters:
  • config_path (str | Path) – Path to the JSON configuration file.

  • session (sqlalchemy.orm.Session, optional) – Database session for persistence.

Returns:

The created Plant instance.

Return type:

cmp.Plant