honeybee_energy.material.dictutil module

Utilities to convert material dictionaries to Python objects.

honeybee_energy.material.dictutil.dict_to_material(mat_dict, raise_exception=True)[source]

Get a Python object of any Material from a dictionary.

Parameters
  • mat_dict – A dictionary of any Honeybee energy material.

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

Returns

A Python object derived from the input mat_dict.