aiaccel.config.load_config#
- aiaccel.config.load_config(config_filename: str | Path, parent_config: dict[str, Any] | DictConfig | ListConfig | None = None) DictConfig | ListConfig [source]#
Load YAML configuration
When the user specifies
_base_
, the specified YAML file is loaded as the base, and the original configuration is merged with the base config. If the configuration specified in_base_
also contains_base_
, the process is handled recursively.Additionally, if bootstrap_config is provided, it is merged with the final configuration to ensure any default values or overrides are applied.
- Parameters:
config (Path) – Path to the configuration
parent_config (dict[str, Any] | DictConfig | ListConfig | None) – A configuration that is merged to the loaded configuration. This is intended to define default config paths (e.g., working_directory) dynamically.
- Returns:
The merged configuration of the base config and the original config user_config(DictConfig | ListConfig) : The configuration without
_base_
- Return type:
merge_user_config (DictConfig)