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
« 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
5# gets sphinx autodoc done right - don't remove it
7from .webface42m import WebFace42M
8from .demographics import (
9 MedsTorchDataset,
10 MorphTorchDataset,
11 MobioTorchDataset,
12 MSCelebTorchDataset,
13 VGG2TorchDataset,
14 SiameseDemographicWrapper,
15)
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:
23 *args: An iterable of objects to modify
25 Resolves `Sphinx referencing issues
26 <https://github.com/sphinx-doc/sphinx/issues/3048>`
27 """
29 for obj in args:
30 obj.__module__ = __name__
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("_")]