CADETProcess.dataStructure.nested_dict.insert_path#
- CADETProcess.dataStructure.nested_dict.insert_path(nested_dict: dict[str, Any], path: str | list, value: Any) None[source]#
Add a key path to an existing dictionary without overwriting existing keys.
- Parameters:
- nested_dictdict
dictionary to update.
- pathstr or list
Path to the key in dot notation (string) or as a list of keys.
- valueAny
Value to insert.
- Raises:
- KeyError
If an intermediate key in the path does not exist.