Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
af11e17f
Commit
af11e17f
authored
Nov 28, 2017
by
Amir MOHAMMADI
Browse files
Merge branch 'p-1' into 'master'
Make the original_directory and annotation_directory a property See merge request
!25
parents
61d44974
2422dbe4
Pipeline
#14375
passed with stages
in 23 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/database/youtube.py
View file @
af11e17f
...
...
@@ -59,6 +59,11 @@ class YoutubeBioDatabase(ZTBioDatabase):
annotation_extension
=
'.labeled_faces.txt'
,
**
kwargs
):
from
bob.db.youtube.query
import
Database
as
LowLevelDatabase
self
.
_db
=
LowLevelDatabase
(
original_directory
,
original_extension
,
annotation_extension
)
# call base class constructors to open a session to the database
super
(
YoutubeBioDatabase
,
self
).
__init__
(
name
=
'youtube'
,
...
...
@@ -67,10 +72,13 @@ class YoutubeBioDatabase(ZTBioDatabase):
annotation_extension
=
annotation_extension
,
**
kwargs
)
from
bob.db.youtube.query
import
Database
as
LowLevelDatabase
self
.
_db
=
LowLevelDatabase
(
original_directory
,
original_extension
,
annotation_extension
)
@
property
def
original_directory
(
self
):
return
self
.
_db
.
original_directory
@
original_directory
.
setter
def
original_directory
(
self
,
value
):
self
.
_db
.
original_directory
=
value
def
model_ids_with_protocol
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
self
.
_db
.
model_ids
(
groups
=
groups
,
protocol
=
protocol
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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