From 610b15e17dc395970042298df7c2ac263ef2a1ef Mon Sep 17 00:00:00 2001 From: Intron7 Date: Thu, 19 Dec 2024 10:55:20 +0100 Subject: [PATCH] updated names --- src/rapids_singlecell/preprocessing/_harmony/_fuses.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rapids_singlecell/preprocessing/_harmony/_fuses.py b/src/rapids_singlecell/preprocessing/_harmony/_fuses.py index f7059c2b..74ad6674 100644 --- a/src/rapids_singlecell/preprocessing/_harmony/_fuses.py +++ b/src/rapids_singlecell/preprocessing/_harmony/_fuses.py @@ -14,8 +14,8 @@ def _get_pen(E: cp.ndarray, O: cp.ndarray, theta: cp.ndarray) -> cp.ndarray: @cp.fuse -def _calc_R(term: cp.ndarray, mm: cp.ndarray) -> cp.ndarray: - return cp.exp(term * (1 - mm)) +def _calc_R(term: cp.ndarray, dotproduct: cp.ndarray) -> cp.ndarray: + return cp.exp(term * (1 - dotproduct)) @cp.fuse @@ -24,5 +24,5 @@ def _log_div_OE(O: cp.ndarray, E: cp.ndarray) -> cp.ndarray: @cp.fuse -def _R_multi_m(R: cp.ndarray, other: cp.ndarray) -> cp.ndarray: - return R * 2 * (1 - other) +def _R_multi_m(R: cp.ndarray, dotproduct: cp.ndarray) -> cp.ndarray: + return R * 2 * (1 - dotproduct)