pypet/naturalnaming.py
def f_iter_leaves(self, with_links=True):
        """Iterates (recursively) over all leaves hanging below the current group.

        :param with_links:

            If links should be ignored, leaves hanging below linked nodes are not listed.

        :returns:

            Iterator over all leaf nodes

        """
        for node in self.f_iter_nodes(with_links=with_links):
            if node.v_is_leaf:
                yield node
def f_iter_leaves(self, with_links=True):
        """Iterates (recursively) over all leaves hanging below the current group.

        :param with_links:

            If links should be ignored, leaves hanging below linked nodes are not listed.

        :returns:

            Iterator over all leaf nodes

        """
        for node in self.f_iter_nodes(with_links=with_links):
            if node.v_is_leaf:
                yield node
Iterates (recursively) over all leaves hanging below the current group.

        :param with_links:

            If links should be ignored, leaves hanging below linked nodes are not listed.

        :returns:

            Iterator over all leaf nodes