Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent b0ddde5 commit 163228e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion anndata/tests/test_backed_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ def make_randomized_mask(size: int) -> np.ndarray:
# non-random indices, with alternating one false and n true
from functools import partial


def make_alternating_mask(size: int, step: int) -> np.ndarray:
mask_alternating = np.ones(size, dtype=bool)
for i in range(0, size, step): # 5 is too low to trigger new behavior
mask_alternating[i] = False
return mask_alternating



make_alternating_mask_5 = partial(make_alternating_mask, step=5)
make_alternating_mask_10 = partial(make_alternating_mask, step=10)

Expand Down

0 comments on commit 163228e

Please sign in to comment.