From f31ffc4e80334a0c07b5b908fcf2945552cafb82 Mon Sep 17 00:00:00 2001 From: Scott Gigante Date: Thu, 21 Feb 2019 18:19:22 -0500 Subject: [PATCH] fix duplicates message --- graphtools/graphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphtools/graphs.py b/graphtools/graphs.py index 298bc7e..8c27d32 100644 --- a/graphtools/graphs.py +++ b/graphtools/graphs.py @@ -245,7 +245,7 @@ def _check_duplicates(self, distances, indices): "Detected zero distance between {} pairs of samples. " "Consider removing duplicates to avoid errors in " "downstream processing.".format( - np.sum(np.sum(distances[:, 1:]))), + np.sum(np.sum(distances[:, 1:] == 0))), RuntimeWarning) def build_kernel_to_data(self, Y, knn=None, bandwidth=None,