Skip to content

Commit

Permalink
updated anndata requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Dec 24, 2017
1 parent 68f17ff commit 432e084
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scanpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
import warnings
from distutils.version import LooseVersion

# version generated by versioneer
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

if sys.version_info < (3, 0):
warnings.warn('Scanpy only runs reliably with Python 3, preferrably >=3.5.')

Expand All @@ -19,12 +24,7 @@
.format(pd.__version__))

import anndata
if anndata.__version__ < LooseVersion('0.3.4'):
raise ImportError('Scanpy needs anndata version >=0.3.4, not {}.\n'
if anndata.__version__ < LooseVersion('0.4'):
raise ImportError('Scanpy {} needs anndata version >=0.4, not {}.\n'
'Run `pip install anndata --upgrade`.'
.format(anndata.__version__))

# version generated by versioneer
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
.format(__version__, anndata.__version__))

0 comments on commit 432e084

Please sign in to comment.