(self, other_tree)
return new
Apply updates from another IndexTree and return a copy with those applied.

        If an id is found in the new one, use that id's indices, otherwise, use this ones,
        (defaulting to nothing).
Apply updates from another IndexTree and return a copy with those applied.
Apply updates from another IndexTree and return a copy with those applied .
def apply_updates(self, other_tree):
        """
        Apply updates from another IndexTree and return a copy with those applied.

        If an id is found in the new one, use that id's indices, otherwise, use this ones,
        (defaulting to nothing).
        """
        assert isinstance(other_tree, IndexTree)
        new = IndexTree(
            indices=copy(self.indices),
        )
        new.indices.update(other_tree.indices)
        return new
def apply_updates ( self , other_tree ) : assert isinstance ( other_tree , IndexTree ) new = IndexTree ( indices = copy ( self . indices ) , ) new . indices . update ( other_tree . indices ) return new