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
. This method will not modify the input values from the case file that have not been converted to the system base. As a result, changes applied by this method will not affect the dumped case file.To alter parameters and reflect it in the case file, use
alter()
instead.- 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, ande
for equation value.- valuearray-like
New values to be set
- Returns
- bool
True when successful.