Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.base
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.base
Commits
2faffe2d
There was a problem fetching the pipeline summary.
Commit
2faffe2d
authored
7 years ago
by
Pavel KORSHUNOV
Browse files
Options
Downloads
Patches
Plain Diff
fixing sphinx
parent
f22853af
No related branches found
No related tags found
1 merge request
!9
Adding support for Filelist-based databases
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/pad/base/database/file.py
+2
-3
2 additions, 3 deletions
bob/pad/base/database/file.py
bob/pad/base/database/filelist/query.py
+8
-2
8 additions, 2 deletions
bob/pad/base/database/filelist/query.py
doc/extra-intersphinx.txt
+2
-1
2 additions, 1 deletion
doc/extra-intersphinx.txt
with
12 additions
and
6 deletions
bob/pad/base/database/file.py
+
2
−
3
View file @
2faffe2d
...
@@ -4,10 +4,9 @@
...
@@ -4,10 +4,9 @@
# @date: Wed May 18 10:09:22 CET 2016
# @date: Wed May 18 10:09:22 CET 2016
#
#
from
bob.bio.base.database
import
BioFile
import
bob.bio.base.database
class
PadFile
(
bob
.
bio
.
base
.
database
.
BioFile
):
class
PadFile
(
BioFile
):
"""
A simple base class that defines basic properties of File object for the use in PAD experiments
"""
"""
A simple base class that defines basic properties of File object for the use in PAD experiments
"""
def
__init__
(
self
,
client_id
,
path
,
attack_type
=
None
,
file_id
=
None
):
def
__init__
(
self
,
client_id
,
path
,
attack_type
=
None
,
file_id
=
None
):
...
...
This diff is collapsed.
Click to expand it.
bob/pad/base/database/filelist/query.py
+
8
−
2
View file @
2faffe2d
...
@@ -219,7 +219,7 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
...
@@ -219,7 +219,7 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
return
self
.
__client_id_list__
(
groups
,
'
for_real
'
,
protocol
)
return
self
.
__client_id_list__
(
groups
,
'
for_real
'
,
protocol
)
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
):
"""
Returns a set of :py:class:`File` objects for the specific query by the user.
"""
Returns a set of :py:class:`
Pad
File` objects for the specific query by the user.
Keyword Parameters:
Keyword Parameters:
...
@@ -239,7 +239,7 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
...
@@ -239,7 +239,7 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
model_ids : [various type]
model_ids : [various type]
This parameter is not supported in PAD databases yet
This parameter is not supported in PAD databases yet
Returns: A list of :py:class:`File` objects considering all the filtering criteria.
Returns: A list of :py:class:`
Pad
File` objects considering all the filtering criteria.
"""
"""
purposes
=
self
.
check_parameters_for_validity
(
purposes
,
"
purpose
"
,
(
'
real
'
,
'
attack
'
))
purposes
=
self
.
check_parameters_for_validity
(
purposes
,
"
purpose
"
,
(
'
real
'
,
'
attack
'
))
...
@@ -273,3 +273,9 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
...
@@ -273,3 +273,9 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
def
annotations
(
self
,
file
):
def
annotations
(
self
,
file
):
return
super
(
FileListPadDatabase
,
self
).
annotations
(
file
)
return
super
(
FileListPadDatabase
,
self
).
annotations
(
file
)
def
tobjects
(
self
,
groups
=
None
,
protocol
=
None
,
model_ids
=
None
,
**
kwargs
):
pass
def
zobjects
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
pass
This diff is collapsed.
Click to expand it.
doc/extra-intersphinx.txt
+
2
−
1
View file @
2faffe2d
...
@@ -3,4 +3,5 @@ numpy
...
@@ -3,4 +3,5 @@ numpy
bob.bio.spear
bob.bio.spear
gridtk
gridtk
bob.db.base
bob.db.base
bob.db.avspoof
bob.db.avspoof
\ No newline at end of file
bob.bio.base
\ No newline at end of file
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