CADETProcess.dataStructure.nested_dict.get_nested_value#
- CADETProcess.dataStructure.nested_dict.get_nested_value(nested_dict: dict[str, Any], path: str | list) Any[source]#
Retrieve a value from a nested dictionary using a dot-separated path.
- Parameters:
- nested_dictdict
dictionary to retrieve the value from.
- pathstr or list
Path to the key in dot notation (string) or as a list of keys.
- Returns:
- Any
The value stored at the specified key path.
- Raises:
- KeyError
If the key path does not exist.