From 8c503480159a18cf8acbf5fb4af51b86fc67d47d Mon Sep 17 00:00:00 2001
From: Theophile GENTILHOMME <tgentilhomme@jurasix08.idiap.ch>
Date: Fri, 6 Apr 2018 10:21:14 +0200
Subject: [PATCH] Fix incorrect loading behaviour for Cmc scores

---
 bob/bio/base/score/load.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/bob/bio/base/score/load.py b/bob/bio/base/score/load.py
index 6bc3987e..60b02cd2 100644
--- a/bob/bio/base/score/load.py
+++ b/bob/bio/base/score/load.py
@@ -441,11 +441,7 @@ def load_files(filenames, func_load):
     res = []
     for filepath in filenames:
         try:
-            tmp = func_load(filepath)
-            if isinstance(tmp, list):
-                res += func_load(filepath)
-            else:
-                res.append(tmp)
+            res.append(func_load(filepath))
         except:
             raise
     return res
-- 
GitLab