RoutineBase.set#
- RoutineBase.set(src: str, idx, attr: str = 'v', value=0.0)[source]#
Set the value of an attribute of a routine parameter.
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.
vfor values,afor address, andefor equation value.- valuearray-like
New values to be set
- Returns:
- bool
True when successful.