Microgrid.set_module_attr#

Microgrid.set_module_attr(attr_name, value)[source]#

Set the value of an attribute in all modules containing that attribute.

Does nothing in modules not already containing the attribute.

Parameters#

attr_namestr

Name of the module attribute.

valueany

Value to set the attribute to.

Raises#

AttributeError

If no module has the attribute.