From 7ada7732d7b8d19f93a18cca178f5062269f9cd1 Mon Sep 17 00:00:00 2001 From: Caibin Sheng Date: Wed, 24 Jul 2024 10:27:10 +0200 Subject: [PATCH] refactor: Refactor functions for compatibility with scipy 1.14 --- scar/main/_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scar/main/_setup.py b/scar/main/_setup.py index 7fe6d25..1d9778b 100644 --- a/scar/main/_setup.py +++ b/scar/main/_setup.py @@ -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(