From 13f820569232948bcdbc591a01d1993ec0cf7b9e Mon Sep 17 00:00:00 2001
From: Manuel Gunther <siebenkopf@googlemail.com>
Date: Thu, 26 May 2016 14:20:30 -0600
Subject: [PATCH] Fixed constness-issue (#19) in nose test

---
 bob/learn/em/test/test_kmeans_trainer.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bob/learn/em/test/test_kmeans_trainer.py b/bob/learn/em/test/test_kmeans_trainer.py
index 00dcbcc..3bc499e 100644
--- a/bob/learn/em/test/test_kmeans_trainer.py
+++ b/bob/learn/em/test/test_kmeans_trainer.py
@@ -144,8 +144,9 @@ def test_kmeans_b():
   bob.learn.em.train(trainer,machine, arStd, convergence_threshold=0.001)
 
   [variances, weights] = machine.get_variances_and_weights_for_each_cluster(arStd)
-    
-  means = machine.means
+
+  means = numpy.array(machine.means)
+  variances = numpy.array(variances)
 
   multiplyVectorsByFactors(means, std)
   multiplyVectorsByFactors(variances, std ** 2)
-- 
GitLab