CADETProcess.dataStructure.nested_dict.update_dict_recursively#
- CADETProcess.dataStructure.nested_dict.update_dict_recursively(target_dict: dict[str, Any], updates: dict[str, Any], only_existing_keys: bool = False) dict[str, Any][source]#
Recursively update target_dict with values from updates.
- Parameters:
- target_dictdict
The original dictionary to be updated.
- updatesdict
The dictionary containing new values to merge into target_dict.
- only_existing_keysbool, optional
If True, only update keys that already exist in target_dict. If False, add new keys from updates. Default is False.
- Returns:
- dict
The updated dictionary with updates applied.