pypet/naturalnaming.py
def f_get_all(self, name, max_depth=None, shortcuts=True):
        """ Searches for all occurrences of `name` under `node`.

        Links are NOT considered since nodes are searched bottom up in the tree.

        :param node:

            Start node

        :param name:

            Name of what to look for, can be separated by colons, i.e.
            ``'mygroupA.mygroupB.myparam'``.

        :param max_depth:

            Maximum search depth relative to start node.
            `None` for no limit.

        :param shortcuts:

            If shortcuts are allowed, otherwise the stated name defines a
            consecutive name.For instance. ``'mygroupA.mygroupB.myparam'`` would
            also find ``mygroupA.mygroupX.mygroupB.mygroupY.myparam`` if shortcuts
            are allowed, otherwise not.

        :return:

            List of nodes that match the name, empty list if nothing was found.

        """
        return self._nn_interface._get_all(self, name, max_depth=max_depth, shortcuts=shortcuts)
def f_get_all(self, name, max_depth=None, shortcuts=True):
        """ Searches for all occurrences of `name` under `node`.

        Links are NOT considered since nodes are searched bottom up in the tree.

        :param node:

            Start node

        :param name:

            Name of what to look for, can be separated by colons, i.e.
            ``'mygroupA.mygroupB.myparam'``.

        :param max_depth:

            Maximum search depth relative to start node.
            `None` for no limit.

        :param shortcuts:

            If shortcuts are allowed, otherwise the stated name defines a
            consecutive name.For instance. ``'mygroupA.mygroupB.myparam'`` would
            also find ``mygroupA.mygroupX.mygroupB.mygroupY.myparam`` if shortcuts
            are allowed, otherwise not.

        :return:

            List of nodes that match the name, empty list if nothing was found.

        """
        return self._nn_interface._get_all(self, name, max_depth=max_depth, shortcuts=shortcuts)
Searches for all occurrences of `name` under `node`.

        Links are NOT considered since nodes are searched bottom up in the tree.

        :param node:

            Start node

        :param name:

            Name of what to look for, can be separated by colons, i.e.
            ``'mygroupA.mygroupB.myparam'``.

        :param max_depth:

            Maximum search depth relative to start node.
            `None` for no limit.

        :param shortcuts:

            If shortcuts are allowed, otherwise the stated name defines a
            consecutive name.For instance. ``'mygroupA.mygroupB.myparam'`` would
            also find ``mygroupA.mygroupX.mygroupB.mygroupY.myparam`` if shortcuts
            are allowed, otherwise not.

        :return:

            List of nodes that match the name, empty list if nothing was found.