Coverage for src/bob/bio/vein/preprocessor/__init__.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-12 23:27 +0200

1# isort: skip_file 

2from .crop import Cropper, FixedCrop, NoCrop 

3from .mask import Padder, Masker, FixedMask, NoMask, AnnotatedRoIMask 

4from .mask import KonoMask, LeeMask, TomesLeeMask 

5from .normalize import Normalizer, NoNormalization, HuangNormalization 

6from .filters import Filter, NoFilter, HistogramEqualization 

7from .preprocessor import Preprocessor 

8 

9 

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

11def __appropriate__(*args): 

12 """Says object was actually declared here, an not on the import module. 

13 

14 Parameters: 

15 

16 *args: An iterable of objects to modify 

17 

18 Resolves `Sphinx referencing issues 

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

20 """ 

21 

22 for obj in args: 

23 obj.__module__ = __name__ 

24 

25 

26__appropriate__( 

27 Cropper, 

28 FixedCrop, 

29 NoCrop, 

30 Padder, 

31 Masker, 

32 FixedMask, 

33 NoMask, 

34 AnnotatedRoIMask, 

35 KonoMask, 

36 LeeMask, 

37 TomesLeeMask, 

38 Normalizer, 

39 NoNormalization, 

40 HuangNormalization, 

41 Filter, 

42 NoFilter, 

43 HistogramEqualization, 

44 Preprocessor, 

45) 

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