Skip to content
Snippets Groups Projects
Commit ac4ab6d3 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[sphinx] Fixing nightlies

parent 0091d8d9
Branches
Tags
1 merge request!51[sphinx] Fixing nightlies
Pipeline #51802 passed
...@@ -16,30 +16,27 @@ from bob.bio.vein.database.fv3d import Database ...@@ -16,30 +16,27 @@ from bob.bio.vein.database.fv3d import Database
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
import logging import logging
logger = logging.getLogger("bob.bio.vein") logger = logging.getLogger("bob.bio.vein")
# Retrieve directory from config # Retrieve directory from config
_fv3d_directory = rc["bob.db.fv3d.directory"] _fv3d_directory = rc.get("bob.db.fv3d.directory", "")
"""Value in ``~/.bobrc`` for this dataset directory""" """Value in ``~/.bobrc`` for this dataset directory"""
# Set default protocol if not given via a config file # Set default protocol if not given via a config file
if 'protocol' not in locals(): if "protocol" not in locals():
logger.info("protocol not specified, using default: 'central'") logger.info("protocol not specified, using default: 'central'")
protocol = 'central' protocol = "central"
legacy_database = Database( legacy_database = Database(
original_directory = _fv3d_directory, original_directory=_fv3d_directory, original_extension=".png", protocol=protocol,
original_extension = '.png',
protocol = protocol,
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with fv3d """The :py:class:`bob.bio.base.database.BioDatabase` derivative with fv3d
database settings database settings
""" """
database = DatabaseConnector( database = DatabaseConnector(
legacy_database, legacy_database, annotation_type=None, fixed_positions=None
annotation_type=None,
fixed_positions=None
) )
""" """
The database interface wrapped for vanilla-biometrics The database interface wrapped for vanilla-biometrics
......
...@@ -21,29 +21,26 @@ from bob.bio.vein.database.putvein import PutveinBioDatabase ...@@ -21,29 +21,26 @@ from bob.bio.vein.database.putvein import PutveinBioDatabase
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
import logging import logging
logger = logging.getLogger("bob.bio.vein") logger = logging.getLogger("bob.bio.vein")
_putvein_directory = rc["bob.db.putvein.directory"] _putvein_directory = rc.get("bob.db.putvein.directory", "")
"""Value in ``~/.bobrc`` for this dataset directory""" """Value in ``~/.bobrc`` for this dataset directory"""
# Set default protocol if not given via a config file # Set default protocol if not given via a config file
if 'protocol' not in locals(): if "protocol" not in locals():
logger.info("protocol not specified, using default: 'wrist-LR_1'") logger.info("protocol not specified, using default: 'wrist-LR_1'")
protocol = 'wrist-LR_1' protocol = "wrist-LR_1"
legacy_database = PutveinBioDatabase( legacy_database = PutveinBioDatabase(
original_directory = _putvein_directory, original_directory=_putvein_directory, original_extension=".bmp", protocol=protocol,
original_extension = '.bmp',
protocol = protocol,
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with PUT Vein """The :py:class:`bob.bio.base.database.BioDatabase` derivative with PUT Vein
database settings database settings
""" """
database = DatabaseConnector( database = DatabaseConnector(
legacy_database, legacy_database, annotation_type=None, fixed_positions=None
annotation_type=None,
fixed_positions=None
) )
""" """
......
...@@ -22,28 +22,25 @@ from bob.bio.vein.database.utfvp import Database ...@@ -22,28 +22,25 @@ from bob.bio.vein.database.utfvp import Database
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
import logging import logging
logger = logging.getLogger("bob.bio.vein") logger = logging.getLogger("bob.bio.vein")
_utfvp_directory = rc["bob.db.utfvp.directory"] _utfvp_directory = rc.get("bob.db.utfvp.directory", "")
"""Value in ``~/.bobrc`` for this dataset directory""" """Value in ``~/.bobrc`` for this dataset directory"""
# Set default protocol if not given via a config file # Set default protocol if not given via a config file
if 'protocol' not in locals(): if "protocol" not in locals():
logger.info("protocol not specified, using default: 'nom'") logger.info("protocol not specified, using default: 'nom'")
protocol = 'nom' protocol = "nom"
legacy_database = Database( legacy_database = Database(
original_directory = _utfvp_directory, original_directory=_utfvp_directory, original_extension=".png", protocol=protocol,
original_extension = '.png',
protocol = protocol,
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with UTFVP settings """The :py:class:`bob.bio.base.database.BioDatabase` derivative with UTFVP settings
""" """
database = DatabaseConnector( database = DatabaseConnector(
legacy_database, legacy_database, annotation_type=None, fixed_positions=None
annotation_type=None,
fixed_positions=None
) )
""" """
The database interface wrapped for vanilla-biometrics The database interface wrapped for vanilla-biometrics
......
...@@ -17,25 +17,27 @@ from bob.bio.vein.database.verafinger import Database ...@@ -17,25 +17,27 @@ from bob.bio.vein.database.verafinger import Database
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
import logging import logging
logger = logging.getLogger("bob.bio.vein") logger = logging.getLogger("bob.bio.vein")
_verafinger_directory = rc["bob.db.verafinger.directory"] _verafinger_directory = rc.get("bob.db.verafinger.directory", "")
"""Value in ``~/.bobrc`` for this dataset directory""" """Value in ``~/.bobrc`` for this dataset directory"""
# Set default protocol if not given via a config file # Set default protocol if not given via a config file
if 'protocol' not in locals(): if "protocol" not in locals():
logger.info("protocol not specified, using default: 'Nom'") logger.info("protocol not specified, using default: 'Nom'")
protocol = 'Nom' protocol = "Nom"
"""Updated with the wrapper for the pipelines package""" """Updated with the wrapper for the pipelines package"""
database = DatabaseConnector(Database( database = DatabaseConnector(
Database(
original_directory=_verafinger_directory, original_directory=_verafinger_directory,
original_extension='.png', original_extension=".png",
protocol=protocol), protocol=protocol,
),
annotation_type=None, annotation_type=None,
fixed_positions=None fixed_positions=None,
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with Verafinger """The :py:class:`bob.bio.base.database.BioDatabase` derivative with Verafinger
database settings, wrapped with the vanilla-biometrics database connector. database settings, wrapped with the vanilla-biometrics database connector.
......
...@@ -61,9 +61,15 @@ The current system readily supports the following freely available datasets: ...@@ -61,9 +61,15 @@ The current system readily supports the following freely available datasets:
After downloading the databases, annotate the base directories in which they After downloading the databases, annotate the base directories in which they
are installed. Then, follow the instructions in are installed. Then, run the commands below let this framework know where root
:ref:`bob.bio.base.installation` to let this framework know where root installation of such databases are located on your system:
installation of such databases are located on your system.
.. code-block:: sh
$ bob config set bob.db.fv3d.directory [PATH]
$ bob config set bob.db.putvein.directory [PATH]
$ bob config set bob.db.utfvp.directory [PATH]
$ bob config set bob.db.verafinger.directory [PATH]
Development Development
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment