CADETProcess.dataStructure.nested_dict.generate_nested_dict

CADETProcess.dataStructure.nested_dict.generate_nested_dict#

CADETProcess.dataStructure.nested_dict.generate_nested_dict(path: str | list, value: Any = None) dict[str, Any][source]#

Generate a nested dictionary from a dot-separated path.

Parameters:
pathstr or list

Path to create in the dictionary, given in dot notation or as a list.

valueAny, optional

The value to assign to the innermost key.

Returns:
dict

A nested dictionary created from the path.