Skip to content

Commit

Permalink
refactor: Refactor functions for compatibility with scipy 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
CaibinSh committed Jul 24, 2024
1 parent 73f737c commit 7ada773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scar/main/_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def setup_anndata(
)
for b in range(n_batch):
try:
count_batch = raw_adata[batch_idx == b].X.astype(int).A
count_batch = raw_adata[batch_idx == b].X.astype(int).toarray()
except MemoryError:
raise MemoryError("use more batches by setting a higher n_batch")
log_prob_batch = Multinomial(
Expand Down

0 comments on commit 7ada773

Please sign in to comment.