diff --git a/topostats/tracing/nodestats.py b/topostats/tracing/nodestats.py index 5d820f2fcf..2957938069 100644 --- a/topostats/tracing/nodestats.py +++ b/topostats/tracing/nodestats.py @@ -1571,9 +1571,7 @@ def average_height_trace( # noqa: C901 trace = order_branch(trace_img, branch_coords[0]) height_trace = img[trace[:, 0], trace[:, 1]] dist = nodeStats.coord_dist_rad(trace, centre) # self.coord_dist(trace) - dist, height_trace = nodeStats.average_uniques( - dist, height_trace - ) # needs to be paired with coord_dist_rad + dist, height_trace = nodeStats.average_uniques(dist, height_trace) # needs to be paired with coord_dist_rad heights.append(height_trace) distances.append( dist - dist_zero_point # - 0