diff --git a/docs/release-notes/0.10.6.md b/docs/release-notes/0.10.6.md index 1ab5571c..428e1ed4 100644 --- a/docs/release-notes/0.10.6.md +++ b/docs/release-notes/0.10.6.md @@ -8,6 +8,7 @@ ```{rubric} Bug fixes ``` + * removes `.A` to be compatible with scipy 1.14.0 {pr}`214` {smaller}`S Dicks` ```{rubric} Misc ``` diff --git a/src/rapids_singlecell/decoupler_gpu/_method_mlm.py b/src/rapids_singlecell/decoupler_gpu/_method_mlm.py index 5285f592..93fc6061 100644 --- a/src/rapids_singlecell/decoupler_gpu/_method_mlm.py +++ b/src/rapids_singlecell/decoupler_gpu/_method_mlm.py @@ -50,7 +50,7 @@ def mlm(mat, net, batch_size=10000, verbose=False): for i in tqdm(range(n_batches), disable=not verbose): # Subset batch srt, end = i * batch_size, i * batch_size + batch_size - y = mat[srt:end].A.T + y = mat[srt:end].toarray().T # Compute MLM for batch es[srt:end] = fit_mlm(net, cp.array(y), inv, df)[:, 1:] diff --git a/src/rapids_singlecell/decoupler_gpu/_method_wsum.py b/src/rapids_singlecell/decoupler_gpu/_method_wsum.py index 9f15cebe..b498f316 100644 --- a/src/rapids_singlecell/decoupler_gpu/_method_wsum.py +++ b/src/rapids_singlecell/decoupler_gpu/_method_wsum.py @@ -66,7 +66,7 @@ def wsum(mat, net, times, batch_size, seed, verbose): for i in tqdm(range(n_batches), disable=not verbose): # Subset batch srt, end = i * batch_size, i * batch_size + batch_size - tmp = mat[srt:end].A + tmp = mat[srt:end].toarray() # Run WSUM