Commit c0b568b6 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed database interfaces

parent 05df0fbc
......@@ -5,7 +5,7 @@ import bob.bio.base
youtube_directory = "[YOUR_YOUTUBE_DIRECTORY]"
database = bob.bio.base.database.DatabaseBobZT(
database = bob.bio.base.database.DatabaseBob(
database = bob.db.youtube.Database(
original_directory = youtube_directory,
),
......
......@@ -25,8 +25,8 @@ class DummyDatabase (DatabaseBobZT):
def t_model_ids(self, group = 'dev'):
return self.model_ids(group)
def t_enroll_files(self, model_id, group = 'dev'):
return self.enroll_files(model_id, group)
def t_enroll_files(self, t_model_id, group = 'dev'):
return self.enroll_files(t_model_id, group)
def z_probe_files(self, group = 'dev'):
return self.probe_files(None, group)
......
......@@ -64,7 +64,7 @@ def test_mobio():
def test_youtube():
database = bob.bio.base.load_resource('youtube', 'database')
try:
_check_database_zt(database, training_depends=True, models_depend=True)
_check_database_zt(database, protocol = 'fold7', training_depends=True, models_depend=True)
_check_database(database, training_depends=True, models_depend=True)
_check_database(database, protocol = 'fold7', training_depends=True, models_depend=True)
except IOError as e:
raise SkipTest("The database could not be queried; probably the db.sql3 file is missing. Here is the import error: '%s'" % e)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment