c53b5ac96d78c866546f03b9894a68fb874c4f10,scanpy/__init__.py,,,#,6

Before Change


from ._metadata import __version__, __author__, __email__

from ._utils import check_versions
check_versions()
del check_versions

// the actual API
from ._settings import settings, Verbosity  // start with settings as several tools are using it

After Change



from ._metadata import __version__, __author__, __email__, within_flit

if not within_flit():
    from ._utils import check_versions
    check_versions()
    del check_versions, within_flit

    // the actual API
    from ._settings import settings, Verbosity  // start with settings as several tools are using it
    from . import tools as tl
    from . import preprocessing as pp
    from . import plotting as pl
    from . import datasets, logging, queries, external, get

    from anndata import AnnData, concat
    from anndata import read_h5ad, read_csv, read_excel, read_hdf, read_loom, read_mtx, read_text, read_umi_tools
    from .readwrite import read, read_10x_h5, read_10x_mtx, write, read_visium
    from .neighbors import Neighbors

    set_figure_params = settings.set_figure_params

    // has to be done at the end, after everything has been imported
    import sys
    sys.modules.update({f"{__name__}.{m}": globals()[m] for m in ["tl", "pp", "pl"]})
    from ._utils import annotate_doc_types
    annotate_doc_types(sys.modules[__name__], "scanpy")
    del sys, annotate_doc_types
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: theislab/scanpy
Commit Name: c53b5ac96d78c866546f03b9894a68fb874c4f10
Time: 2020-12-02
Author: flying-sheep@web.de
File Name: scanpy/__init__.py
Class Name:
Method Name:


Project Name: theislab/scanpy
Commit Name: 28aea53ac14e04d1683e6eda568b816977456b5a
Time: 2020-08-17
Author: flying-sheep@web.de
File Name: scanpy/__init__.py
Class Name:
Method Name:


Project Name: theislab/scanpy
Commit Name: e8f4f4c73a15ce8fef98baf1dc4cfdf4e0addf38
Time: 2021-03-01
Author: flying-sheep@web.de
File Name: scanpy/__init__.py
Class Name:
Method Name: