pypet/naturalnaming.py
def f_get_parent(self):
        """Returns the parent of the node.

        Raises a TypeError if current node is root.

        """
        if self.v_is_root:
            raise TypeError('Root does not have a parent')
        elif self.v_location == '':
            return self.v_root
        else:
            return self.v_root.f_get(self.v_location, fast_access=False, shortcuts=False)
def f_get_parent(self):
        if self.v_is_root:
            raise TypeError('Root does not have a parent')
        elif self.v_location == '':
            return self.v_root
        else:
            return self.v_root.f_get(self.v_location, fast_access=False, shortcuts=False)
def f_get_parent ( self ) : if self . v_is_root : raise TypeError ( 'Root does not have a parent' ) elif self . v_location == '' : return self . v_root else : return self . v_root . f_get ( self . v_location , fast_access = False , shortcuts = False )
Returns the parent of the node.

        Raises a TypeError if current node is root.
Returns the parent of the node .