Commit 030c796f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

pass kwargs in the base file class

parent af11e17f
Pipeline #15122 passed with stages
in 22 minutes and 4 seconds
...@@ -8,12 +8,12 @@ from ..utils import FrameSelector ...@@ -8,12 +8,12 @@ from ..utils import FrameSelector
class VideoBioFile(BioFile): 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 Initializes this File object with an File equivalent for
VoxForge database. 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()): def load(self, directory=None, extension='.avi', frame_selector=FrameSelector()):
return frame_selector(self.make_path(directory, extension)) return frame_selector(self.make_path(directory, extension))
Supports Markdown
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