Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieHanLab authored Apr 23, 2023
1 parent 975132e commit 3044baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TOSICA/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def set_seed(seed):

def todense(adata):
import scipy
if isinstance(adata.X, scipy.sparse.csr_matrix):
if isinstance(adata.X, scipy.sparse.csr_matrix) or isinstance(adata.X, scipy.sparse.csc_matrix):
return adata.X.todense()
else:
return adata.X
Expand Down

0 comments on commit 3044baa

Please sign in to comment.