Skip to content

Commit

Permalink
Fix incompatibility with scipy 1.12 (#484)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.0.3...v4.0.0-alpha.8)
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.14](astral-sh/ruff-pre-commit@v0.1.9...v0.1.14)

* Fix vstack for scipy 1.12

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Gregor Sturm <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and grst authored Jan 24, 2024
1 parent 3b21fe9 commit 6b18fde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
language_version: "17.9.1"
exclude: '^\.conda'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.14
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning][].

### Fixes

- Fix incompatibility with `scipy` 1.12 ([#484](https://github.com/scverse/scirpy/pull/484))
- Fix incompatibility with `adjustText` 1.0 ([#477](https://github.com/scverse/scirpy/pull/477))
- Reduce overall importtime by deferring the import of the `airr` package until it is actually used. ([#473](https://github.com/scverse/scirpy/pull/473))

Expand Down
2 changes: 1 addition & 1 deletion src/scirpy/ir_dist/_clonotype_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def compute_distances(self) -> sp.csr_matrix:
tqdm_class=tqdm,
)

dist = sp.vstack(dist_rows)
dist = sp.vstack(list(dist_rows))
dist.eliminate_zeros()
logging.hint("Done computing clonotype x clonotype distances. ", time=start)
return dist # type: ignore
Expand Down

0 comments on commit 6b18fde

Please sign in to comment.