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

8 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 .Cepstral import Cepstral 

23from .speechbrain_embeddings import SpeechbrainEmbeddings 

24 

25 

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

27def __appropriate__(*args): 

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

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

30 Parameters: 

31 

32 *args: An iterable of objects to modify 

33 

34 Resolves `Sphinx referencing issues 

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

36 """ 

37 

38 for obj in args: 

39 obj.__module__ = __name__ 

40 

41 

42__appropriate__( 

43 Cepstral, 

44 SpeechbrainEmbeddings, 

45) 

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