GroupBase.set#

GroupBase.set(src: str, idx, attr, value)[source]#

Set the value of an attribute of a group property. Performs self.<src>.<attr>[idx] = value.

The user needs to ensure that the property is shared by all models in this group.

Parameters:
srcstr

Name of property.

idxstr, int, float, array-like

Indices of devices.

attrstr, optional, default='v'

The internal attribute of the property to get. v for values, a for address, and e for equation value.

valuearray-like

New values to be set

Returns:
bool

True when successful.