Skip to content

Commit f97e011

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3eb9d9a commit f97e011

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

benchmarks/benchmarks/preprocessing.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class PreprocessingSuite:
1616
param_names = ["input_data"]
1717

1818
def setup(self, input_data: str):
19-
self.adata = rsc.get.anndata_to_GPU(self._data_dict[input_data].copy(), copy=True)
19+
self.adata = rsc.get.anndata_to_GPU(
20+
self._data_dict[input_data].copy(), copy=True
21+
)
2022

2123
def time_calculate_qc_metrics(self, *_):
2224
self.adata.var["mt"] = self.adata.var_names.str.startswith("MT-")

benchmarks/benchmarks/readwrite.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@
3838

3939
sc.settings.datasetdir = pathlib.Path(__file__).parent.resolve() / "data"
4040

41+
4142
@dataclass
4243
class Dataset:
4344
path: Path
4445
get: Callable[[], anndata.AnnData]
4546

46-
path="/p/project/training2406/team_scverse/gold2/rapids_singlecell/benchmarks/data/pbmc3k_raw.h5ad"
47+
48+
path = "/p/project/training2406/team_scverse/gold2/rapids_singlecell/benchmarks/data/pbmc3k_raw.h5ad"
4749

4850

4951
class ToGPUSuite:

benchmarks/benchmarks/squidpy.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@
1111

1212
import rapids_singlecell as rsc
1313

14-
import pathlib
1514

1615
class ToolsSuite:
1716
_data_dict = dict(
18-
visium_sge=ad.read_h5ad("/p/project/training2406/team_scverse/gold2/rapids_singlecell/benchmarks/data/paul15.h5ad"),
17+
visium_sge=ad.read_h5ad(
18+
"/p/project/training2406/team_scverse/gold2/rapids_singlecell/benchmarks/data/paul15.h5ad"
19+
),
1920
)
2021
params = _data_dict.keys()
2122
param_names = ["input_data"]
2223

2324
def setup(self, input_data):
24-
self.adata = rsc.get.anndata_to_GPU(self._data_dict[input_data].copy(), copy=True)
25+
self.adata = rsc.get.anndata_to_GPU(
26+
self._data_dict[input_data].copy(), copy=True
27+
)
2528

2629
def time_ligrec(self, *_):
2730
gene_ids = self.adata.var.index

benchmarks/benchmarks/tools.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
import rapids_singlecell as rsc
1111

12-
import pathlib
13-
1412

1513
class ToolsSuite:
1614
_data_dict = dict(
@@ -20,7 +18,9 @@ class ToolsSuite:
2018
param_names = ["input_data"]
2119

2220
def setup(self, input_data):
23-
self.adata = rsc.get.anndata_to_GPU(self._data_dict[input_data].copy(), copy=True)
21+
self.adata = rsc.get.anndata_to_GPU(
22+
self._data_dict[input_data].copy(), copy=True
23+
)
2424
assert "X_pca" in self.adata.obsm
2525

2626
def time_umap(self, *_):

0 commit comments

Comments
 (0)