Skip to content

Commit

Permalink
Merge pull request #37 from Genentech/sparse-update
Browse files Browse the repository at this point in the history
  • Loading branch information
avantikalal authored Aug 5, 2024
2 parents 19b6e99 + 57b6a75 commit 86f8dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grelu/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def __init__(
# Get the labels
if label_key is None:
if scipy.sparse.issparse(adata.X):
labels = adata.X.A.T
labels = adata.X.toarray().T
else:
labels = adata.X.T

Expand Down

0 comments on commit 86f8dcb

Please sign in to comment.