From 3ba3e30fd11ddb35e1529786214556b12c4c9ed0 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Thu, 19 Oct 2017 12:05:26 +0200
Subject: [PATCH] Pass the same size as well to the lower function

---
 bob/bio/base/utils/io.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bob/bio/base/utils/io.py b/bob/bio/base/utils/io.py
index 7dfd17bd..e9f6424f 100644
--- a/bob/bio/base/utils/io.py
+++ b/bob/bio/base/utils/io.py
@@ -305,8 +305,7 @@ def vstack_features(reader, paths, same_size=False, allow_missing_files=False):
   if same_size and allow_missing_files:
     raise ValueError("Both same_size and allow_missing_files cannot be True at"
                      " the same time.")
-  iterable = _generate_features(
-      reader, paths, allow_missing_files=allow_missing_files)
+  iterable = _generate_features(reader, paths, same_size, allow_missing_files)
   dtype, shape = next(iterable)
   if same_size:
     total_size = int(len(paths) * numpy.prod(shape))
-- 
GitLab