Coverage for src/bob/bio/face/pytorch/datasets/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-13 00:04 +0200

1#!/usr/bin/env python 

2# vim: set fileencoding=utf-8 : 

3# isort: skip_file 

4 

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

6 

7from .webface42m import WebFace42M 

8from .demographics import ( 

9 MedsTorchDataset, 

10 MorphTorchDataset, 

11 MobioTorchDataset, 

12 MSCelebTorchDataset, 

13 VGG2TorchDataset, 

14 SiameseDemographicWrapper, 

15) 

16 

17 

18def __appropriate__(*args): 

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

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

21 Parameters: 

22 

23 *args: An iterable of objects to modify 

24 

25 Resolves `Sphinx referencing issues 

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

27 """ 

28 

29 for obj in args: 

30 obj.__module__ = __name__ 

31 

32 

33__appropriate__( 

34 WebFace42M, 

35 MedsTorchDataset, 

36 MorphTorchDataset, 

37 MobioTorchDataset, 

38 MSCelebTorchDataset, 

39 VGG2TorchDataset, 

40 SiameseDemographicWrapper, 

41) 

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