Skip to content

Commit

Permalink
instead of a boolean for slicing use indices
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram authored and ivirshup committed Dec 4, 2020
1 parent 5a4260b commit cc27d11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scanpy/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def obs_df(
# for backed AnnData is important that the indices are ordered
var_order = np.argsort(var_idx)
matrix = X[:, var_idx[var_order]]

from scipy.sparse import issparse

if issparse(matrix):
Expand Down

0 comments on commit cc27d11

Please sign in to comment.