From 4d6caf9a8a6d2d01f6e44ebbfb5bbb6b57681108 Mon Sep 17 00:00:00 2001 From: Jason Ken Adhinarta <35003073+jasonkena@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:02:34 -0400 Subject: [PATCH] bugfix: call kimimaro.skeletontricks.roll_invalidation_ball_inside_component using required positional-only arguments (#87) --- kimimaro/trace.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kimimaro/trace.py b/kimimaro/trace.py index b0f2a6b..62aea79 100644 --- a/kimimaro/trace.py +++ b/kimimaro/trace.py @@ -160,10 +160,10 @@ def trace( if soma_mode: invalidated, labels = kimimaro.skeletontricks.roll_invalidation_ball_inside_component( labels, DBF, - path=[root], - scale=soma_invalidation_scale, - const=soma_invalidation_const, - anisotropy=anisotropy, + soma_invalidation_scale, + soma_invalidation_const, + anisotropy, + [root], voxel_connectivity_graph=voxel_graph, ) # This target is only valid if no @@ -261,7 +261,7 @@ def find_target(): if valid_labels > 0: invalidated, labels = kimimaro.skeletontricks.roll_invalidation_ball_inside_component( labels, DBF, scale, const, - anisotropy=anisotropy, path=path, + anisotropy, path, voxel_connectivity_graph=voxel_graph, ) valid_labels -= invalidated