From 2f248bb73abc93c5f3884930a29b2d74d45f8434 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 7 Sep 2026 13:31:46 +0200 Subject: [PATCH] Fix leftover build_vessel_graph docstring reference The build_vessel_graph -> build_skeleton_graph rename (2.0.0) missed this one docstring in _skeleton_has_no_branches, left over from before that PR touched this same function. Confirmed no other build_vessel_graph/ extract_vessel_features references remain anywhere in maskel/*.py. uv run pytest: 294 passed. ruff check/format: clean. Co-Authored-By: Claude Sonnet 5 --- maskel/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maskel/pipeline.py b/maskel/pipeline.py index 288c5ad..c7d172e 100644 --- a/maskel/pipeline.py +++ b/maskel/pipeline.py @@ -224,7 +224,7 @@ def _skeleton_has_no_branches(skeleton: np.ndarray) -> bool: """True when no two foreground pixels in *skeleton* are adjacent (full connectivity), i.e. every "branch" is an isolated single pixel. - ``skan.Skeleton`` (via ``build_vessel_graph``, and via + ``skan.Skeleton`` (via ``build_skeleton_graph``, and via ``collapse_triangle_junctions``'s own call during junction cleanup) requires at least one graph edge to build its sparse path matrix and raises a low-level ``ValueError`` from inside scipy.sparse otherwise -