From ff8cff058b131d0f0781581d31abc1fd48206f5e Mon Sep 17 00:00:00 2001 From: Evan Strat <5790137+evan10s@users.noreply.github.com> Date: Sat, 14 Nov 2020 16:37:47 -0500 Subject: [PATCH] Clarify that distances is initially empty --- skan/csr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skan/csr.py b/skan/csr.py index 8b7545f4..b3944ce3 100644 --- a/skan/csr.py +++ b/skan/csr.py @@ -306,7 +306,8 @@ class Skeleton: The number of paths, P. This is redundant information given `n_paths`, but it is used often enough that it is worth keeping around. distances : array of float, shape (P,) - The distance of each path. + The distance of each path. Note: not initialized until `path_lengths()` + is called on the skeleton; use path_lengths() instead skeleton_image : array or None The input skeleton image. Only present if `keep_images` is True. Set to False to preserve memory.