Commit be71f295 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV
Browse files

Merge branch 'sphinx-fixes' into 'master'

[sphinx] Hacked warnings

See merge request !2
parents 9fde38af 5a3e8c12
Pipeline #4781 failed with stages
in 5 minutes and 42 seconds
......@@ -41,7 +41,7 @@ class Algorithm:
Set this flag to ``False``, when the projection is applied, but the projector does not need to be trained.
kwargs : ``key=value`` pairs
A list of keyword arguments to be written in the :py:meth:`__str__` function.
A list of keyword arguments to be written in the `__str__` function.
......@@ -6,11 +6,12 @@
import abc
import bob.pad.base.database
import bob.pad.base
from import BioDatabase
class PadDatabase(
class PadDatabase(BioDatabase):
"""This class represents the basic API for database access.
Please use this class as a base class for your database access classes.
Do not forget to call the constructor of this base class in your derived class.
......@@ -4,10 +4,10 @@
# @date: Wed May 18 10:09:22 CET 2016
from import BioFile
class PadFile(
class PadFile(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):
......@@ -21,7 +21,7 @@ class PadFile(
In cased of a spoofed data, this parameter should indicate what kind of spoofed attack it is.
The default None value is interpreted that the PadFile is a genuine or real sample.
For client_id, path and file_id, please refer to :py:class:`` constructor
For client_id, path and file_id, please refer to :py:class:`` constructor
super(PadFile, self).__init__(client_id, path, file_id)
......@@ -31,7 +31,7 @@ class FileSelector(object):
database : :py:class:`antispoofing.utils.db` or derived.
database : :py:class:`bob.pad.base.database.PadDatabase` or derived.
The database object that provides the list of files.
preprocessed_directory : str
......@@ -243,7 +243,6 @@ if os.path.exists(sphinx_requirements):
intersphinx_mapping = link_documentation()
# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
accepted_private_functions = ['__array__']
\ No newline at end of file
\ No newline at end of file
......@@ -32,8 +32,8 @@ This will assure that all parameters of the experiments are stored into the ``Ex
If you plan to write your own tools, please assure that you are following the following structure.
.. _bob.pad.base.preprocessors:
.. _bob.pad.base.extractors:
Preprocessors and Extractors
......@@ -148,7 +148,7 @@ These variable names are:
* ``grid`` for an instance of the :py:class:``
.. _bob.pad.base.resources:
.. _bob.pad.base.implemented:
Tools implemented in bob.pad.base
......@@ -30,8 +30,8 @@ There, in the ``eggs`` section of the ``buildout.cfg`` file, simply list the ``b
in order to download and install all packages that are required for your experiments.
In the example above, you might want to run a simple speech presentation attack detection
experiment using the :py:class:`bob.pad.voice.preprocessor.EnergyBandsPreprocessor` and
the :py:class:`bob.pad.voice.extractor.LBPExtractor` feature extractor
experiment using the :py:class:`` and
the :py:class:`bob.pad.voice.extractor.LBPHistograms` feature extractor
defined in :ref:`bob.pad.voice <bob.pad.voice>`, using the AVspoof database interface defined in :ref:`bob.db.avspoof <bob.db.avspoof>`.
Running the simple command line:
py:class BioFile
py:class BioFileSet
py:class bob.pad.voice.extractor.LBPHistograms
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment