From 4290943ad071bc13f0d954e4cc6b341cf3df9234 Mon Sep 17 00:00:00 2001 From: Samuel GIFFARD Date: Tue, 30 Jun 2020 18:16:59 +0900 Subject: [PATCH] Fixes a typo on nodes Closes #71 --- mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh.py b/mesh.py index 95cae5b..3af8c7a 100644 --- a/mesh.py +++ b/mesh.py @@ -761,7 +761,7 @@ def remove_dangling(mesh, edge_ccs, edge_mesh, info_on_pix, image, depth, config info_on_pix[(hx, hy)][0]['depth'] = new_depth info_on_pix[(hx, hy)][0]['disp'] = 1./new_depth new_node = (hx, hy, new_depth) - mesh = refresh_node(single_edge_node, mesh.node[single_edge_node], new_node, dict(), mesh) + mesh = refresh_node(single_edge_node, mesh.nodes[single_edge_node], new_node, dict(), mesh) edge_ccs[edge_cc_id] = set([new_node]) for ne in largest_cc: mesh.add_edge(new_node, ne)