Skip to content

Commit

Permalink
update for scipy 1.14 (#214)
Browse files Browse the repository at this point in the history
* remove .A

* adds release note
  • Loading branch information
Intron7 authored Jun 25, 2024
1 parent b4785d7 commit 2e7d71f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/0.10.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

```{rubric} Bug fixes
```
* removes `.A` to be compatible with scipy 1.14.0 {pr}`214` {smaller}`S Dicks`

```{rubric} Misc
```
2 changes: 1 addition & 1 deletion src/rapids_singlecell/decoupler_gpu/_method_mlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down
2 changes: 1 addition & 1 deletion src/rapids_singlecell/decoupler_gpu/_method_wsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2e7d71f

Please sign in to comment.