Points.getIndex¶
- Points.getIndex(identifier)¶
The index of a point name.
Return the index location of the point
identifier
. Theidentifier
can be a point name or integer (including negative integers).- Parameters:
name (str) – The name of a point.
- Returns:
int
See also
Examples
>>> X = nimble.identity(4, pointNames=['a', 'b', 'c', 'd']) >>> X.points.getIndex('c') 2 >>> X.points.getIndex(-1) 3
Keywords: position, spot, location, identifier