When attempting to remove a terminal I get the following error:
pu.remove(u)
File "/Users/nathan/anaconda3/lib/python3.7/site-packages/ucca/core.py", line 129, in __call__
return decorated(*args, **kwargs)
File "/Users/nathan/anaconda3/lib/python3.7/site-packages/ucca/core.py", line 127, in decorated
return self.fn(*args, **kwargs)
File "/Users/nathan/anaconda3/lib/python3.7/site-packages/ucca/core.py", line 540, in remove
if edge_or_node not in self._outgoing: # a Node, or an error
File "/Users/nathan/anaconda3/lib/python3.7/site-packages/ucca/layer0.py", line 109, in __eq__
if other.layer.ID != LAYER_ID:
AttributeError: 'Edge' object has no attribute 'layer'
When attempting to remove a terminal I get the following error:
Is it possible to add a check to https://github.com/danielhers/ucca/blob/9487abbebb94b72ceb0153c803e0b8d851b5e70a/ucca/layer0.py#L109 to avoid this? Maybe: