Closed joric closed 1 year ago
Ok got it after studying sources. We need to define eq, and pass identity node, e.g. like this:
def __eq__(self, other):
return all(x==y for x,y in zip(self.coords,other.coords))
...
tree = tree.remove( r[0].data, node=r[0] )
What am I missing here? Looks like remove doesn't work properly for custom items. Using
tree = tree.remove( [2, 3, 4], node = r )
for identity check doesn't work either.