Skip to content

Commit

Permalink
Fix #514
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Mar 18, 2019
1 parent 89abcb8 commit cd4800a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scanpy/preprocessing/_bbknn.py
Expand Up @@ -75,10 +75,10 @@ def bbknn(adata, batch_key='batch', save_knn=False, copy=False, **kwargs):
-------
The `adata` with the batch-corrected graph.
"""
params = locals() # Has to be first
kwargs = params.pop('kwargs')
try:
from bbknn import bbknn
except ImportError:
raise ImportError('Please install bbknn: `pip install bbknn`.')
params = locals()
kwargs = params.pop('kwargs')
return bbknn(**params, **kwargs)

0 comments on commit cd4800a

Please sign in to comment.