Skip to content

Commit

Permalink
fix #754 (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
csweaver committed May 7, 2019
1 parent c12cb24 commit a7bd76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/scanpy_engine/scanpy_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def slice_columns(X, var_mask):
if sparse.issparse(X): # use tuned getcol/hstack for performance
indices = np.nonzero(var_mask)[0]
cols = [X.getcol(i) for i in indices]
return sparse.hstack(cols)
return sparse.hstack(cols, format="csc")
else: # else, just use standard slicing, which is fine for dense arrays
return X[:, var_mask]

Expand Down

0 comments on commit a7bd76f

Please sign in to comment.