Coverage for src/bob/bio/spear/database/mobio.py: 100%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-06 22:04 +0100
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-06 22:04 +0100
1from bob.bio.base.database import CSVDatabase
2from bob.bio.spear.database.utils import create_sample_loader, get_rc
5class MobioDatabase(CSVDatabase):
6 """Mobio-audio database definition."""
8 name = "mobio"
9 category = "spear"
10 dataset_protocols_name = "mobio.tar.gz"
11 dataset_protocols_urls = [
12 "https://www.idiap.ch/software/bob/databases/latest/spear/mobio-fb456ae5.tar.gz",
13 "http://www.idiap.ch/software/bob/databases/latest/spear/mobio-fb456ae5.tar.gz",
14 ]
15 dataset_protocols_hash = "fb456ae5"
17 def __init__(self, protocol):
18 super().__init__(
19 name=self.name,
20 protocol=protocol,
21 transformer=create_sample_loader(
22 data_path=get_rc().get("bob.db.mobio.audio.directory", None),
23 ),
24 )