From a597648b30284e0e1a2e9d11b829fa0b9429a21a Mon Sep 17 00:00:00 2001
From: Manuel Guenther <manuel.guenther@idiap.ch>
Date: Mon, 29 Jun 2015 16:31:13 +0200
Subject: [PATCH] Fixed bug in parallel kmeans implementation

---
 bob/bio/gmm/tools/gmm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/bio/gmm/tools/gmm.py b/bob/bio/gmm/tools/gmm.py
index a35c94f..09e67b5 100644
--- a/bob/bio/gmm/tools/gmm.py
+++ b/bob/bio/gmm/tools/gmm.py
@@ -91,7 +91,7 @@ def _read_stats(filename):
 def _accumulate(filenames):
   zeroeth, first, nsamples, dist = _read_stats(filenames[0])
   for stat in filenames[1:]:
-    zeroeth_, first_, nsamples_, dist_ = _read_stats(filenames[1])
+    zeroeth_, first_, nsamples_, dist_ = _read_stats(stat)
     zeroeth += zeroeth_
     first += first_
     nsamples += nsamples_
-- 
GitLab