getattr
- Graph.getattr(value, attr, *, name=None)
Get an attribute from a node value.
Typically you would use the syntax
value.attr
instead of using this function directly.- Parameters
value (Any) – The value from which to get the item.
attr (str) – The name of the attribute.
name (str, optional) – The name of the node.
- Returns
The item or items obtained from
value.attr
, or to be more precise,getattr(value, attr)
.- Return type
Any
Notes
Only certain combinations of value and attr are supported:
Pwc.values
The tensor of values of a Pwc.