neat.MorphTree.get_loc_idxs_on_path¶
- MorphTree.get_loc_idxs_on_path(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:
name (string) – which list of locations to consider
node0 (
SNode) – start node of pathnode1 (
SNode) – stop node of pathxstart (float (in
[0,1])) – starting coordinate on node0xstop (float (in
[0,1])) – stopping coordinate on node1
- Returns:
Indices of locations on the path. If path is empty, an empty array is returned.
- Return type:
list of ints