Skip to content

Commit a8e7fa6

Browse files
committed
pre-commit fix
1 parent b45511f commit a8e7fa6

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/decoupler/mt/_pv.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
@nb.njit(cache=True)
66
def _fdr_bh_single_row(ps_row, m):
7-
"""
8-
Apply Benjamini-Hochberg correction to a single row.
9-
"""
7+
"""Apply Benjamini-Hochberg correction to a single row."""
108
# Sort the row and get indices
119
order = np.argsort(ps_row)
1210
ps_sorted = ps_row[order]
@@ -43,9 +41,7 @@ def _fdr_bh_single_row(ps_row, m):
4341

4442
@nb.njit(parallel=True, cache=True)
4543
def _fdr_bh_parallel(ps, m):
46-
"""
47-
Apply Benjamini-Hochberg correction to all rows in parallel.
48-
"""
44+
"""Apply Benjamini-Hochberg correction to all rows in parallel."""
4945
n_rows = ps.shape[0]
5046
result = np.empty_like(ps, dtype=np.float64)
5147

@@ -56,11 +52,7 @@ def _fdr_bh_parallel(ps, m):
5652

5753

5854
def _fdr_bh_axis1_numba(ps):
59-
"""
60-
Benjamini–Hochberg adjusted p-values along axis=1 (rows).
61-
ps: numpy.ndarray (n_rows, n_tests), values in [0, 1].
62-
Returns: numpy.ndarray of same shape.
63-
"""
55+
"""Benjamini–Hochberg adjusted p-values along axis=1 (rows)."""
6456
ps = np.asarray(ps, dtype=np.float64)
6557
if ps.ndim != 2:
6658
raise ValueError("ps must be 2D (n_rows, n_tests) for axis=1.")

0 commit comments

Comments
 (0)