neat.MorphTree.__iter__¶
- MorphTree.__iter__(node=None, skip_inds=(2, 3))[source]¶
Overloaded iterator from parent class that avoids iterating over the nodes with index 2 and 3
- Parameters:
node (neat.MorphNode) – The starting node. Defaults to the root
skip_inds (tuple of ints) – Indices of the nodes that are skipped by the iterator. Defaults to
(2,3), the nodes that contain extra geometrical information on the soma.
- Yields:
neat.MorphNode – Nodes in the tree