CADETProcess.dataStructure.nested_dict.check_nested

Contents

CADETProcess.dataStructure.nested_dict.check_nested#

CADETProcess.dataStructure.nested_dict.check_nested(nested_dict: dict[str, Any], path: str | list) bool[source]#

Check if a key path exists in a nested dictionary.

Parameters:
nested_dictdict

dictionary in which the path is checked.

pathstr or list

Path to the key in dot notation (string) or as a list of keys.

Returns:
bool

True if the item exists and is not a dictionary, False otherwise.