__init__.py 1.05 KB
Newer Older
1
from .csv_dataset import (
2
    CSVDataset,
3 4 5
    CSVToSampleLoader,
    CSVDatasetCrossValidation,
    CSVBaseSampleLoader,
6
    AnnotationsLoader,
7
    LSTToSampleLoader,
8
    CSVDatasetZTNorm,
9
)
10 11 12 13
from .file import BioFile
from .file import BioFileSet
from .database import BioDatabase
from .database import ZTBioDatabase
14 15
from .filelist import FileListBioDatabase
from . import filelist
16

17 18

# gets sphinx autodoc done right - don't remove it
Pavel KORSHUNOV's avatar
Pavel KORSHUNOV committed
19
def __appropriate__(*args):
20
    """Says object was actually declared here, and not in the import module.
Pavel KORSHUNOV's avatar
Pavel KORSHUNOV committed
21 22 23 24 25 26 27 28 29
  Fixing sphinx warnings of not being able to find classes, when path is shortened.
  Parameters:

    *args: An iterable of objects to modify

  Resolves `Sphinx referencing issues
  <https://github.com/sphinx-doc/sphinx/issues/3048>`
  """

30 31
    for obj in args:
        obj.__module__ = __name__
Amir Mohammadi's avatar
Amir Mohammadi committed
32

Pavel KORSHUNOV's avatar
Pavel KORSHUNOV committed
33 34 35 36 37

__appropriate__(
    BioFile,
    BioFileSet,
    BioDatabase,
38 39
    ZTBioDatabase,
    CSVBaseSampleLoader,
40
    CSVDataset,
41
    CSVToSampleLoader,
42
    CSVDatasetCrossValidation,
Amir Mohammadi's avatar
Amir Mohammadi committed
43
)
44
__all__ = [_ for _ in dir() if not _.startswith("_")]