From 3b6266b4bb6e7229557c2e68d9336fc08ad2b282 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Mon, 23 Nov 2020 17:43:42 +0100 Subject: fix group loop --- fuzzycat/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py index f3d547a..7d418ac 100644 --- a/fuzzycat/cluster.py +++ b/fuzzycat/cluster.py @@ -439,7 +439,7 @@ class Cluster: There might be large clusters, which would currently exceed memory. Mitigate by splitting large clusters into parts. """ - for k, g in enumerate(itertools.groupby(seq, key=key): + for k, g in itertools.groupby(seq, key=key): payload = [] for i, line in enumerate(g): if i > 0 and i == self.max_cluster_size: -- cgit v1.2.3