def get_parent_plate_value(tree, node, value=None):
        """
        Recurse up the tree getting parent plate values
        :param tree: The tree
        :param node: The current node
        :param value: The initial plate value
        :return: The plate value as a list of tuples
        """
        if value is None:
            value = []
        parent = tree.parent(node.identifier)
        if parent.is_root():
            # value.append((parent.tag, parent.identifier))
            return value
        value = PlateManager.get_parent_plate_value(tree, parent, value)
        if "." in parent.identifier:
            pass
        value.append((parent.tag, parent.data))
        return value
def get_parent_plate_value ( tree , node , value = None ) : if value is None : value = [ ] parent = tree . parent ( node . identifier ) if parent . is_root ( ) : return value value = PlateManager . get_parent_plate_value ( tree , parent , value ) if "." in parent . identifier : pass value . append ( ( parent . tag , parent . data ) ) return value
Recurse up the tree getting parent plate values
        :param tree: The tree
        :param node: The current node
        :param value: The initial plate value
        :return: The plate value as a list of tuples