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

8 statements  

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

1from .energy_2gauss import Energy_2Gauss 

2from .energy_thr import Energy_Thr 

3from .mod_4hz import Mod_4Hz 

4 

5 

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

7def __appropriate__(*args): 

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

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

10 Parameters: 

11 

12 *args: An iterable of objects to modify 

13 

14 Resolves `Sphinx referencing issues 

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

16 """ 

17 

18 for obj in args: 

19 obj.__module__ = __name__ 

20 

21 

22__appropriate__( 

23 Energy_2Gauss, 

24 Energy_Thr, 

25 Mod_4Hz, 

26) 

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