Model.get#
- Model.get(src: str, idx, attr: str = 'v', allow_none=False, default=0.0)[source]#
Get the value of an attribute of a model property.
The return value is
self.<src>.<attr>[idx]
- Parameters
- srcstr
Name of the model property
- idxstr, int, float, array-like
Indices of the devices
- attrstr, optional, default='v'
The attribute of the property to get.
v
for values,a
for address, ande
for equation value.- allow_nonebool
True to allow None values in the indexer
- defaultfloat
If allow_none is true, the default value to use for None indexer.
- Returns
- array-like
self.<src>.<attr>[idx]