Skip to content

Commit 46706ab

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/squidpy/gr/_ligrec.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,9 @@ def extractor(res: Sequence[TempResult]) -> TempResult:
737737
mean = groups.mean().values.T # (n_genes, n_clusters)
738738
# see https://github.com/scverse/squidpy/pull/991#issuecomment-2888506296
739739
# for why we need to cast to int64 here
740-
mask = groups.apply(lambda c: ((c > 0).astype(np.int64).sum() / len(c)) >= threshold).values.T # (n_genes, n_clusters)
740+
mask = groups.apply(
741+
lambda c: ((c > 0).astype(np.int64).sum() / len(c)) >= threshold
742+
).values.T # (n_genes, n_clusters)
741743

742744
# (n_cells, n_genes)
743745
data = np.array(data[data.columns.difference(["clusters"])].values, dtype=np.float64, order="C")

0 commit comments

Comments
 (0)