pypet/naturalnaming.py
def _set_details_tree_node(self, parent_node, name, instance):
        """Renames a given `instance` based on `parent_node` and `name`.

        Adds meta information like depth as well.

        """
        depth = parent_node._depth + 1
        if parent_node.v_is_root:
            branch = name  # We add below root
        else:
            branch = parent_node._branch
        if name in self._root_instance._run_information:
            run_branch = name
        else:
            run_branch = parent_node._run_branch

        instance._set_details(depth, branch, run_branch)
def _set_details_tree_node(self, parent_node, name, instance):
        """Renames a given `instance` based on `parent_node` and `name`.

        Adds meta information like depth as well.

        """
        depth = parent_node._depth + 1
        if parent_node.v_is_root:
            branch = name  # We add below root
        else:
            branch = parent_node._branch
        if name in self._root_instance._run_information:
            run_branch = name
        else:
            run_branch = parent_node._run_branch

        instance._set_details(depth, branch, run_branch)
def _set_details_tree_node ( self , parent_node , name , instance ) : depth = parent_node . _depth + 1 if parent_node . v_is_root : branch = name # We add below root else : branch = parent_node . _branch if name in self . _root_instance . _run_information : run_branch = name else : run_branch = parent_node . _run_branch instance . _set_details ( depth , branch , run_branch )
Renames a given `instance` based on `parent_node` and `name`.

        Adds meta information like depth as well.
Renames a given instance based on parent_node and name .