neat.MorphTree.getLocindsOnPath¶
-
MorphTree.
getLocindsOnPath
(name, node0, node1, xstart=0.0, xstop=1.0)[source]¶ Returns a list of the indices of locations in the list of a given name that are on the given path. The path is taken to start at the input x-start coordinate of the first node in the list and to stop at the given x-stop coordinate of the last node in the list
- Parameters
- Returns
Indices of locations on the path. If path is empty, an empty array is returned.
- Return type
list of ints