merge_algorithm_configs#
- classmethod Algorithm.merge_algorithm_configs(config1: dict, config2: dict, _allow_unknown_configs: bool | None = None) dict[source]#
Merges a complete Algorithm config dict with a partial override dict.
Respects nested structures within the config dicts. The values in the partial override dict take priority.
- Parameters:
config1 (dict) – The complete Algorithm’s dict to be merged (overridden) with
config2.config2 (dict) – The partial override config dict to merge on top of
config1._allow_unknown_configs (bool | None) – If True, keys in
config2that don’t exist inconfig1are allowed and will be added to the final config.
- Returns:
The merged full algorithm config dict.
- Return type: