From 8fc4e614e341dd40503698a1edcd6cc78b228b56 Mon Sep 17 00:00:00 2001 From: rstiskalek Date: Sat, 1 Apr 2023 07:55:17 +0100 Subject: [PATCH] unused variable --- csiborgtools/match/knn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csiborgtools/match/knn.py b/csiborgtools/match/knn.py index f6211d5..aac55c7 100644 --- a/csiborgtools/match/knn.py +++ b/csiborgtools/match/knn.py @@ -233,7 +233,7 @@ class kNN_CDF: for j in range(nbatches): rand = self.rvs_in_sphere(batch_size, Rmax, random_state=random_state + j) - dist, _indxs = knn.kneighbors(rand, nneighbours) + dist, __ = knn.kneighbors(rand, nneighbours) for k in range(nneighbours): # Count for each neighbour _counts, __, __ = binned_statistic( dist[:, k], dist[:, k], bins=bins, statistic="count",