honeybee_radiance.mutil module

Modifier utility functions.


Convert a dictionary representation of any modifier to a class instance.

The returned object will have the correct class type and will not be the generic Modifier base class. Note that this function is recursive and will re-serialize modifiers of modifiers.


mdict – A dictionary of any Radiance Modifier.


Get the class of any modifier using its ‘type’ string.

This function is equivalent to the primitive_class_from_type_string function but it is only for modifiers (not geometry) and is slightly faster when one is sure that the type_string is a modifier.

Note that this function returns the class itself and not a class instance.


type_string – Text for the name of a modifier module/class. This should be the same as the ‘type’ key used in the dictionary representation of the modifier.