After updating COMPAS to the version 15.1 today, “network_find_cycles” gives me the following error:
network_find_cycles(network)
File “C:\Users\msalma\Documents\compas-dev\compas\src\compas\datastructures\network\duality.py”, line 64, in network_find_cycles
u = sorted(network.nodes(True), key=lambda x: (x[1][1], x[1][0]))[0][0]
File “C:\Users\msalma\Documents\compas-dev\compas\src\compas\datastructures\network\duality.py”, line 64, in
u = sorted(network.nodes(True), key=lambda x: (x[1][1], x[1][0]))[0][0]
KeyError: 1
Before updating I used to do the following, and it was working:
mesh=Mesh.from_data(network.to_data())
mesh.halfedge=network.halfedge
network_find_faces(mesh)