Skip to content
Snippets Groups Projects
Commit 9ff2a4ec authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Changed the HLDI to match the PadDatabase class

parent 1a89ddf3
No related branches found
No related tags found
1 merge request!1Added the High Level DB interface for Replay DB + Unit Tests
Pipeline #
...@@ -93,22 +93,15 @@ class ReplayPadDatabase(PadDatabase): ...@@ -93,22 +93,15 @@ class ReplayPadDatabase(PadDatabase):
def __init__( def __init__(
self, self,
all_files_options={}, protocol='grandtest', # grandtest is the default protocol for this database
check_original_files_for_existence=False,
original_directory=None, original_directory=None,
original_extension=None, original_extension=None,
# here I have said grandtest because this is the name of the default
# protocol for this database
protocol='grandtest',
**kwargs): **kwargs):
""" """
**Parameters:** **Parameters:**
``all_files_options`` : :py:class:`dict` ``protocol`` : :py:class:`str` or ``None``
Dictionary of options passed to the second-level database query when retrieving all data. The name of the protocol that defines the default experimental setup for this database.
``check_original_files_for_existence`` : :py:class:`bool`
Enables to test for the original data files when querying the database.
``original_directory`` : :py:class:`str` ``original_directory`` : :py:class:`str`
The directory where the original data of the database are stored. The directory where the original data of the database are stored.
...@@ -116,9 +109,6 @@ class ReplayPadDatabase(PadDatabase): ...@@ -116,9 +109,6 @@ class ReplayPadDatabase(PadDatabase):
``original_extension`` : :py:class:`str` ``original_extension`` : :py:class:`str`
The file name extension of the original data. The file name extension of the original data.
``protocol`` : :py:class:`str` or ``None``
The name of the protocol that defines the default experimental setup for this database.
``kwargs`` ``kwargs``
The arguments of the :py:class:`bob.bio.base.database.BioDatabase` base class constructor. The arguments of the :py:class:`bob.bio.base.database.BioDatabase` base class constructor.
""" """
...@@ -134,12 +124,10 @@ class ReplayPadDatabase(PadDatabase): ...@@ -134,12 +124,10 @@ class ReplayPadDatabase(PadDatabase):
# Always use super to call parent class methods. # Always use super to call parent class methods.
super(ReplayPadDatabase, self).__init__( super(ReplayPadDatabase, self).__init__(
'replay', name = 'replay',
all_files_options, protocol = protocol,
check_original_files_for_existence, original_directory = original_directory,
original_directory, original_extension = original_extension,
original_extension,
protocol,
**kwargs) **kwargs)
def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs): def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment