-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b624b0
commit 1083b36
Showing
4 changed files
with
61 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
|
||
# Python build files | ||
__pycache__/ | ||
/scanpy/_version.py | ||
/dist/ | ||
/build/ | ||
/scanpy.egg-info/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,52 @@ | ||
"""Single-Cell Analysis in Python.""" | ||
|
||
from ._metadata import __version__, within_flit | ||
|
||
if not within_flit(): # see function docstring on why this is there | ||
from ._utils import check_versions | ||
|
||
check_versions() | ||
del check_versions, within_flit | ||
|
||
# the actual API | ||
# (start with settings as several tools are using it) | ||
from ._settings import settings, Verbosity | ||
from . import tools as tl | ||
from . import preprocessing as pp | ||
from . import plotting as pl | ||
from . import datasets, logging, queries, external, get, metrics, experimental | ||
|
||
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 | ||
try: # See https://github.com/maresb/hatch-vcs-footgun-example | ||
from setuptools_scm import get_version | ||
|
||
__version__ = get_version(root="..", relative_to=__file__) | ||
del get_version | ||
except (ImportError, LookupError): | ||
try: | ||
from ._version import __version__ | ||
except ModuleNotFoundError: | ||
raise RuntimeError( | ||
"scanpy is not correctly installed. Please install it, e.g. with pip." | ||
) | ||
|
||
from ._utils import check_versions | ||
|
||
check_versions() | ||
del check_versions | ||
|
||
# the actual API | ||
# (start with settings as several tools are using it) | ||
from ._settings import settings, Verbosity | ||
from . import tools as tl | ||
from . import preprocessing as pp | ||
from . import plotting as pl | ||
from . import datasets, logging, queries, external, get, metrics, experimental | ||
|
||
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 |
This file was deleted.
Oops, something went wrong.