Skip to content
Snippets Groups Projects
Commit d59ace3b authored by akomaty@idiap.ch's avatar akomaty@idiap.ch
Browse files

database constructor now accepts original_directory and original_extension...

database constructor now accepts original_directory and original_extension bob#235
parent 95e27d32
No related branches found
No related tags found
1 merge request!8database constructor now accepts original_directory and original_extension
Pipeline #
...@@ -155,9 +155,10 @@ class File(Base, bob.db.base.File): ...@@ -155,9 +155,10 @@ class File(Base, bob.db.base.File):
def __init__(self, client_id, path, session_id, speech_type, shot_id, environment, device, channel_id): def __init__(self, client_id, path, session_id, speech_type, shot_id, environment, device, channel_id):
# call base class constructor # call base class constructor
bob.db.base.File.__init__(self, client_id=client_id, path=path) bob.db.base.File.__init__(self, path=path)
# fill the remaining bits of the file information # fill the remaining bits of the file information
self.client_id = client_id
self.session_id = session_id self.session_id = session_id
self.speech_type = speech_type self.speech_type = speech_type
self.shot_id = shot_id self.shot_id = shot_id
......
...@@ -39,7 +39,7 @@ class Database(bob.db.base.SQLiteDatabase): ...@@ -39,7 +39,7 @@ class Database(bob.db.base.SQLiteDatabase):
def __init__(self, original_directory=None, original_extension=None, annotation_directory=None, annotation_extension='.pos'): def __init__(self, original_directory=None, original_extension=None, annotation_directory=None, annotation_extension='.pos'):
# call base class constructors to open a session to the database # call base class constructors to open a session to the database
super(Database, self).__init__(SQLITE_FILE, File) super(Database, self).__init__(SQLITE_FILE, File, original_directory, original_extension)
self.annotation_directory = annotation_directory self.annotation_directory = annotation_directory
self.annotation_extension = annotation_extension self.annotation_extension = annotation_extension
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment