From 655b88cf72194190812c943f6efb36f2a7550de3 Mon Sep 17 00:00:00 2001 From: Pavel Korshunov <pavel.korshunov@idiap.ch> Date: Wed, 23 Nov 2016 11:43:12 +0100 Subject: [PATCH] Fixing duplication of declarations for sphinx --- bob/bio/base/algorithm/__init__.py | 8 -------- bob/bio/base/database/__init__.py | 6 ------ bob/bio/base/extractor/__init__.py | 4 ---- bob/bio/base/preprocessor/__init__.py | 4 ---- 4 files changed, 22 deletions(-) diff --git a/bob/bio/base/algorithm/__init__.py b/bob/bio/base/algorithm/__init__.py index d5e2f3fd..710306da 100644 --- a/bob/bio/base/algorithm/__init__.py +++ b/bob/bio/base/algorithm/__init__.py @@ -5,14 +5,6 @@ from .LDA import LDA from .PLDA import PLDA from .BIC import BIC -# # to fix sphinx warnings of not being able to find classes, when path is shortened -# Algorithm.__module__ = "bob.bio.base.algorithm" -# Distance.__module__ = "bob.bio.base.algorithm" -# PCA.__module__ = "bob.bio.base.algorithm" -# LDA.__module__ = "bob.bio.base.algorithm" -# PLDA.__module__ = "bob.bio.base.algorithm" -# BIC.__module__ = "bob.bio.base.algorithm" - # gets sphinx autodoc done right - don't remove it def __appropriate__(*args): """Says object was actually declared here, and not in the import module. diff --git a/bob/bio/base/database/__init__.py b/bob/bio/base/database/__init__.py index f0d04d66..e0c15ef0 100644 --- a/bob/bio/base/database/__init__.py +++ b/bob/bio/base/database/__init__.py @@ -3,12 +3,6 @@ from .file import BioFileSet from .database import BioDatabase from .database import ZTBioDatabase -# to fix sphinx warnings of not being able to find classes, when path is shortened -BioFile.__module__ = "bob.bio.base.database" -BioFileSet.__module__ = "bob.bio.base.database" -BioDatabase.__module__ = "bob.bio.base.database" -ZTBioDatabase.__module__ = "bob.bio.base.database" - # gets sphinx autodoc done right - don't remove it def __appropriate__(*args): """Says object was actually declared here, and not in the import module. diff --git a/bob/bio/base/extractor/__init__.py b/bob/bio/base/extractor/__init__.py index e8aab1a3..7b55d421 100644 --- a/bob/bio/base/extractor/__init__.py +++ b/bob/bio/base/extractor/__init__.py @@ -1,10 +1,6 @@ from .Extractor import Extractor from .Linearize import Linearize -# to fix sphinx warnings of not being able to find classes, when path is shortened -Extractor.__module__ = "bob.bio.base.extractor" -Linearize.__module__ = "bob.bio.base.extractor" - # gets sphinx autodoc done right - don't remove it def __appropriate__(*args): """Says object was actually declared here, and not in the import module. diff --git a/bob/bio/base/preprocessor/__init__.py b/bob/bio/base/preprocessor/__init__.py index 3f426657..0f981ce2 100644 --- a/bob/bio/base/preprocessor/__init__.py +++ b/bob/bio/base/preprocessor/__init__.py @@ -1,10 +1,6 @@ from .Preprocessor import Preprocessor from .Filename import Filename -# to fix sphinx warnings of not being able to find classes, when path is shortened -Preprocessor.__module__ = "bob.bio.base.preprocessor" -Filename.__module__ = "bob.bio.base.preprocessor" - # gets sphinx autodoc done right - don't remove it def __appropriate__(*args): """Says object was actually declared here, and not in the import module. -- GitLab