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.

  • config1 – The complete Algorithm’s dict to be merged (overridden) with config2.

  • config2 – The partial override config dict to merge on top of config1.

  • _allow_unknown_configs – If True, keys in config2 that don’t exist in config1 are allowed and will be added to the final config.


The merged full algorithm config dict.