dragonfly.dictutil module

Utilities to convertint any dictionary to Python objects.

Note that importing this module will import almost all modules within the library in order to be able to re-serialize almost any dictionary produced from the library.

dragonfly.dictutil.dict_to_object(dragonfly_dict, raise_exception=True)[source]

Re-serialize a dictionary of almost any object within dragonfly.

This includes any Model, Building, Story, Room2D, WindowParameter, ShadingParameter, and boundary conditions.

  • dragonfly_dict – A dictionary of any Dragonfly object. Note that this should be a non-abridged dictionary to be valid.

  • raise_exception – Boolean to note whether an exception should be raised if the object is not identified as a part of dragonfly. Default: True.


A Python object derived from the input dragonfly_dict.