Skip to content

Commit 9b447ea

Browse files
committed
fix dependencies
1 parent a720e1d commit 9b447ea

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

benchmarks/asv.conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//"install_timeout": 600,
5151

5252
// the base URL to show a commit for the project.
53-
"show_commit_url": "https://github.com/squidpy/scanpy/commit/",
53+
"show_commit_url": "https://github.com/scverse/squidpy/commit/",
5454

5555
// The Pythons you'd like to test against. If not provided, defaults
5656
// to the current version of Python used to run `asv`.
@@ -74,7 +74,6 @@
7474
"numpy": [""],
7575
"scipy": [""],
7676
"squidpy": [""],
77-
"scanpy": [""],
7877
},
7978

8079
// Combinations of libraries/python versions can be excluded/included

benchmarks/benchmarks/_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import numpy as np
88
from asv_runner.benchmarks.mark import skip_for_params
9-
from scanpy._compat import CSCBase, CSRBase
9+
from scipy.sparse import csc_matrix, csr_matrix
1010

1111
import squidpy as sq
1212

@@ -39,8 +39,8 @@ def imc() -> AnnData:
3939
return _imc().copy()
4040

4141

42-
def to_off_axis(x: np.ndarray | CSRBase) -> np.ndarray | CSCBase:
43-
if isinstance(x, CSRBase):
42+
def to_off_axis(x: np.ndarray | csr_matrix | csc_matrix) -> np.ndarray | csc_matrix:
43+
if isinstance(x, csr_matrix):
4444
return x.tocsc()
4545
if isinstance(x, np.ndarray):
4646
assert not np.isfortran(x)

0 commit comments

Comments
 (0)