Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
c0b568b6
Commit
c0b568b6
authored
Jun 29, 2015
by
Manuel Günther
Browse files
Fixed database interfaces
parent
05df0fbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/config/database/youtube.py
View file @
c0b568b6
...
...
@@ -5,7 +5,7 @@ import bob.bio.base
youtube_directory
=
"[YOUR_YOUTUBE_DIRECTORY]"
database
=
bob
.
bio
.
base
.
database
.
DatabaseBob
ZT
(
database
=
bob
.
bio
.
base
.
database
.
DatabaseBob
(
database
=
bob
.
db
.
youtube
.
Database
(
original_directory
=
youtube_directory
,
),
...
...
bob/bio/video/test/dummy/database.py
View file @
c0b568b6
...
...
@@ -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
)
...
...
bob/bio/video/test/test_databases.py
View file @
c0b568b6
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment