Points.getIndex

Points.getIndex(identifier)

The index of a point name.

Return the index location of the point identifier. The identifier can be a point name or integer (including negative integers).

Parameters:

name (str) – The name of a point.

Returns:

int

See also

getIndices

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