From ea2d32a13347f80310c434afef7c7643c6082f26 Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Tue, 6 Aug 2024 10:33:57 +0100 Subject: [PATCH] swap deprecated G.clusters() for G.connected_components() --- skeletor/skeletonize/tangent_ball.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeletor/skeletonize/tangent_ball.py b/skeletor/skeletonize/tangent_ball.py index 2930ee0..33622c1 100644 --- a/skeletor/skeletonize/tangent_ball.py +++ b/skeletor/skeletonize/tangent_ball.py @@ -227,7 +227,7 @@ def by_tangent_ball(mesh): directed=False) # Make sure that every connected component has at least one valid target - for cc in G.clusters(): + for cc in G.connected_components(): if not np.isin(cc, original_ind[~inv]).any(): inv[cc[0]] = False centers[cc[0]] = mesh.vertices[cc[0]]