Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.face
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pad.face
Commits
9ff2a4ec
There was a problem fetching the pipeline summary.
Commit
9ff2a4ec
authored
8 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Changed the HLDI to match the PadDatabase class
parent
1a89ddf3
No related branches found
No related tags found
1 merge request
!1
Added the High Level DB interface for Replay DB + Unit Tests
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/database/replay.py
+7
-19
7 additions, 19 deletions
bob/pad/face/database/replay.py
with
7 additions
and
19 deletions
bob/pad/face/database/replay.py
+
7
−
19
View file @
9ff2a4ec
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment