Skip to content
GitLab
Menu
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
030c796f
Commit
030c796f
authored
Jan 10, 2018
by
Amir MOHAMMADI
Browse files
pass kwargs in the base file class
parent
af11e17f
Pipeline
#15122
passed with stages
in 22 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/database/database.py
View file @
030c796f
...
...
@@ -8,12 +8,12 @@ from ..utils import FrameSelector
class
VideoBioFile
(
BioFile
):
def
__init__
(
self
,
client_id
,
path
,
file_id
):
def
__init__
(
self
,
client_id
,
path
,
file_id
,
**
kwargs
):
"""
Initializes this File object with an File equivalent for
VoxForge database.
"""
super
(
VideoBioFile
,
self
).
__init__
(
client_id
=
client_id
,
path
=
path
,
file_id
=
file_id
)
super
(
VideoBioFile
,
self
).
__init__
(
client_id
=
client_id
,
path
=
path
,
file_id
=
file_id
,
**
kwargs
)
def
load
(
self
,
directory
=
None
,
extension
=
'.avi'
,
frame_selector
=
FrameSelector
()):
return
frame_selector
(
self
.
make_path
(
directory
,
extension
))
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