"""This module provides a function to load the pipeline configuration from a YAML file."""importyamlfromenergytrackr.config.config_modelimportPipelineConfigfromenergytrackr.config.config_storeimportConfig
[docs]defload_pipeline_config(config_path:str)->None:"""Load the pipeline configuration from the specified YAML file and set it as the configuration for the pipeline. Args: config_path (str): The path to the YAML configuration file. """withopen(config_path,encoding="utf-8")asf:data=yaml.safe_load(f)pipeline_config=PipelineConfig(**data)Config.set_config(pipeline_config)