colour_hdri.vivified_to_dict#

colour_hdri.vivified_to_dict(vivified: Dict | defaultdict) Dict[source]#

Convert given vivified data-structure to dictionary.

Parameters:

vivified (Dict | defaultdict) – Vivified data-structure.

Return type:

dict

Examples

>>> vivified = vivification()
>>> vivified["my"]["attribute"] = 1
>>> vivified_to_dict(vivified)  
{u'my': {u'attribute': 1}}