Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.base
Commits
2faffe2d
Commit
2faffe2d
authored
May 08, 2017
by
Pavel KORSHUNOV
Browse files
fixing sphinx
parent
f22853af
Pipeline
#8975
failed with stages
in 22 minutes and 23 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
bob/pad/base/database/file.py
View file @
2faffe2d
...
...
@@ -4,10 +4,9 @@
# @date: Wed May 18 10:09:22 CET 2016
#
from
bob.bio.base.database
import
BioFile
import
bob.bio.base.database
class
PadFile
(
BioFile
):
class
PadFile
(
bob
.
bio
.
base
.
database
.
BioFile
):
"""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
):
...
...
bob/pad/base/database/filelist/query.py
View file @
2faffe2d
...
...
@@ -219,7 +219,7 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
return
self
.
__client_id_list__
(
groups
,
'for_real'
,
protocol
)
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:
...
...
@@ -239,7 +239,7 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
model_ids : [various type]
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'
))
...
...
@@ -273,3 +273,9 @@ class FileListPadDatabase(FileListBioDatabase, PadDatabase):
def
annotations
(
self
,
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
doc/extra-intersphinx.txt
View file @
2faffe2d
...
...
@@ -4,3 +4,4 @@ bob.bio.spear
gridtk
bob.db.base
bob.db.avspoof
bob.bio.base
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment