Skip to content
Snippets Groups Projects
Commit a84d12d9 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV
Browse files

Merge branch 'fixed_tests' into 'master'

Fix failing tests after corrections to bob.bio.db

Align with the package `bob.bio.db`

See merge request !31
parents b55ecdb9 cf12e92a
No related branches found
No related tags found
1 merge request!31Fix failing tests after corrections to bob.bio.db
Pipeline #
...@@ -16,8 +16,8 @@ class DummyDatabase(ZTBioDatabase): ...@@ -16,8 +16,8 @@ class DummyDatabase(ZTBioDatabase):
) )
self.__db = AtntBioDatabase() self.__db = AtntBioDatabase()
def model_ids(self, group=None, protocol=None, gender=None): def model_ids(self, groups=None, protocol=None, gender=None):
return self.__db.model_ids(group, protocol, gender) return self.__db.model_ids(groups, protocol, gender)
def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs): def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs):
return self.__db.objects(groups, protocol, purposes, model_ids, **kwargs) return self.__db.objects(groups, protocol, purposes, model_ids, **kwargs)
......
...@@ -33,8 +33,8 @@ class DummyDatabase(ZTBioDatabase): ...@@ -33,8 +33,8 @@ class DummyDatabase(ZTBioDatabase):
file_sets.append(file_set) file_sets.append(file_set)
return file_sets return file_sets
def model_ids(self, group=None, protocol=None, gender=None): def model_ids(self, groups=None, protocol=None, gender=None):
return self.__db.model_ids(group, protocol, gender) return self.__db.model_ids(groups, protocol, gender)
def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs): def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs):
return self.__db.objects(groups, protocol, purposes, model_ids, **kwargs) return self.__db.objects(groups, protocol, purposes, model_ids, **kwargs)
......
...@@ -158,7 +158,7 @@ class FileSelector: ...@@ -158,7 +158,7 @@ class FileSelector:
def model_ids(self, group): def model_ids(self, group):
"""Returns the sorted list of model ids from the given 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): 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. """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: ...@@ -190,7 +190,7 @@ class FileSelector:
def t_model_ids(self, group): def t_model_ids(self, group):
"""Returns the sorted list of T-Norm-model ids from the given 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): 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.""" """Returns the list of T-norm model files used for enrollment of the given model_id from the given group."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment