Coverage for src/bob/bio/spear/database/__init__.py: 100%

14 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-06 22:04 +0100

1#!/usr/bin/env python 

2# vim: set fileencoding=utf-8 : 

3# Elie Khoury <Elie.Khoury@idiap.ch> 

4# Fri Aug 30 11:42:11 CEST 2013 

5# 

6# Copyright (C) 2012-2013 Idiap Research Institute, Martigny, Switzerland 

7# 

8# This program is free software: you can redistribute it and/or modify 

9# it under the terms of the GNU General Public License as published by 

10# the Free Software Foundation, version 3 of the License. 

11# 

12# This program is distributed in the hope that it will be useful, 

13# but WITHOUT ANY WARRANTY; without even the implied warranty of 

14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

15# GNU General Public License for more details. 

16# 

17# You should have received a copy of the GNU General Public License 

18# along with this program. If not, see <http://www.gnu.org/licenses/>. 

19 

20"""Feature extraction tools""" 

21 

22from .asvspoof import AsvspoofDatabase 

23from .avspoof import AvspoofDatabase 

24from .mobio import MobioDatabase 

25from .nist_sre04to16 import NistSRE04To16Database 

26from .timit import TimitDatabase 

27from .voicepa import VoicepaDatabase 

28from .voxceleb import VoxcelebDatabase 

29from .voxforge import VoxforgeDatabase 

30 

31 

32# gets sphinx autodoc done right - don't remove it 

33def __appropriate__(*args): 

34 """Says object was actually declared here, and not in the import module. 

35 Fixing sphinx warnings of not being able to find classes, when path is shortened. 

36 Parameters: 

37 

38 *args: An iterable of objects to modify 

39 

40 Resolves `Sphinx referencing issues 

41 <https://github.com/sphinx-doc/sphinx/issues/3048>` 

42 """ 

43 

44 for obj in args: 

45 obj.__module__ = __name__ 

46 

47 

48__appropriate__( 

49 AsvspoofDatabase, 

50 AvspoofDatabase, 

51 MobioDatabase, 

52 NistSRE04To16Database, 

53 TimitDatabase, 

54 VoicepaDatabase, 

55 VoxcelebDatabase, 

56 VoxforgeDatabase, 

57) 

58__all__ = [_ for _ in dir() if not _.startswith("_")]