From cf12e92a006d365590b935705d1f846ffd0cc432 Mon Sep 17 00:00:00 2001 From: Pavel Korshunov <pavel.korshunov@idiap.ch> Date: Sat, 27 Aug 2016 01:14:57 +0200 Subject: [PATCH] fix failing tests --- bob/bio/base/test/dummy/database.py | 4 ++-- bob/bio/base/test/dummy/fileset.py | 4 ++-- bob/bio/base/tools/FileSelector.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bob/bio/base/test/dummy/database.py b/bob/bio/base/test/dummy/database.py index c79f36e3..d80dc5e4 100644 --- a/bob/bio/base/test/dummy/database.py +++ b/bob/bio/base/test/dummy/database.py @@ -16,8 +16,8 @@ class DummyDatabase(ZTBioDatabase): ) self.__db = AtntBioDatabase() - def model_ids(self, group=None, protocol=None, gender=None): - return self.__db.model_ids(group, protocol, gender) + def model_ids(self, groups=None, protocol=None, gender=None): + return self.__db.model_ids(groups, protocol, gender) def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs): return self.__db.objects(groups, protocol, purposes, model_ids, **kwargs) diff --git a/bob/bio/base/test/dummy/fileset.py b/bob/bio/base/test/dummy/fileset.py index bfc6172c..9c829bd2 100644 --- a/bob/bio/base/test/dummy/fileset.py +++ b/bob/bio/base/test/dummy/fileset.py @@ -33,8 +33,8 @@ class DummyDatabase(ZTBioDatabase): file_sets.append(file_set) return file_sets - def model_ids(self, group=None, protocol=None, gender=None): - return self.__db.model_ids(group, protocol, gender) + def model_ids(self, groups=None, protocol=None, gender=None): + return self.__db.model_ids(groups, protocol, gender) def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs): return self.__db.objects(groups, protocol, purposes, model_ids, **kwargs) diff --git a/bob/bio/base/tools/FileSelector.py b/bob/bio/base/tools/FileSelector.py index 9dbc23dc..16592e26 100644 --- a/bob/bio/base/tools/FileSelector.py +++ b/bob/bio/base/tools/FileSelector.py @@ -158,7 +158,7 @@ class FileSelector: def model_ids(self, group): """Returns the sorted list of model ids from the given group.""" - return sorted(self.database.model_ids(group = group)) + return sorted(self.database.model_ids(groups=group)) def enroll_files(self, model_id, group, directory_type): """Returns the list of model feature files used for enrollment of the model with the given model_id from the given group. @@ -190,7 +190,7 @@ class FileSelector: def t_model_ids(self, group): """Returns the sorted list of T-Norm-model ids from the given group.""" - return sorted(self.database.t_model_ids(group = group)) + return sorted(self.database.t_model_ids(groups = group)) def t_enroll_files(self, t_model_id, group, directory_type): """Returns the list of T-norm model files used for enrollment of the given model_id from the given group.""" -- GitLab