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
d8adc0f9
Commit
d8adc0f9
authored
Jan 15, 2017
by
Amir MOHAMMADI
Browse files
the mobio database does not provide annotations when videos are used
parent
32148bab
Pipeline
#6518
passed with stages
in 29 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/database/mobio.py
View file @
d8adc0f9
...
...
@@ -69,4 +69,8 @@ class MobioBioDatabase(ZTBioDatabase):
return
[
MobioBioFile
(
f
)
for
f
in
retval
]
def
annotations
(
self
,
myfile
):
return
self
.
_db
.
annotations
(
myfile
.
_f
)
'''
Annotations are not available when using videos
'''
return
None
# return self._db.annotations(myfile._f)
bob/bio/video/test/test_databases.py
View file @
d8adc0f9
...
...
@@ -35,7 +35,7 @@ def test_youtube():
raise
SkipTest
(
"The database could not queried; probably the db.sql3 file is missing. Here is the error: '%s'"
%
e
)
try
:
_check_annotations
(
database
,
limit_files
=
1000
)
_check_annotations
(
database
,
limit_files
=
1000
,
topleft
=
True
,
framed
=
True
)
except
IOError
as
e
:
raise
SkipTest
(
"The annotations could not be queried; probably the annotation files are missing. Here is the error: '%s'"
%
e
)
...
...
@@ -49,8 +49,3 @@ def test_mobio():
except
IOError
as
e
:
raise
SkipTest
(
"The database could not queried; probably the db.sql3 file is missing. Here is the error: '%s'"
%
e
)
try
:
_check_annotations
(
database
,
required
=
False
,
limit_files
=
1000
)
except
IOError
as
e
:
raise
SkipTest
(
"The annotations could not be queried; probably the annotation files are missing. Here is the error: '%s'"
%
e
)
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