Model.set#

Model.set(src, idx, attr, value)[source]#

Set the value of an attribute of a model property.

Performs self.<src>.<attr>[idx] = value.

Parameters
srcstr

Name of the model property

idxstr, int, float, array-like

Indices of the 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.