honeybee_radiance.mutil module¶
Modifier utility functions.
- honeybee_radiance.mutil.dict_to_modifier(mdict)[source]¶
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.
- Parameters:
mdict – A dictionary of any Radiance Modifier.
- honeybee_radiance.mutil.modifier_class_from_type_string(type_string)[source]¶
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.
- Parameters:
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.