Skip to content

Commit 968e093

Browse files
committed
add correct fuction names
1 parent 523cccc commit 968e093

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/scanpy/tools/_score_genes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
_GetSubset = Callable[[_StrIdx], np.ndarray | CSBase]
3030

3131

32-
def _get_mean_columns(
32+
@njit
33+
def _get_sparce_nanmean_columns(
3334
data: NDArray[Any], indicies: NDArray[np.int32], shape: tuple
3435
) -> NDArray[np.float64]:
3536
sums = np.zeros(shape[1], dtype=np.float64)
@@ -45,7 +46,7 @@ def _get_mean_columns(
4546

4647

4748
@njit
48-
def _get_mean_rows(
49+
def _get_sparce_nanmean_rows(
4950
data: NDArray[Any], indptr: NDArray[np.int32], shape: tuple
5051
) -> NDArray[np.float64]:
5152
sums = np.zeros(shape[0], dtype=np.float64)
@@ -70,9 +71,9 @@ def _sparse_nanmean(X: CSBase, axis: Literal[0, 1]) -> NDArray[np.float64]:
7071
raise TypeError(msg)
7172

7273
if axis == 1:
73-
return _get_mean_rows(X.data, X.indptr, X.shape)
74+
return _get_sparce_nanmean_rows(X.data, X.indptr, X.shape)
7475
else:
75-
return _get_mean_columns(X.data, X.indices, X.shape)
76+
return _get_sparce_nanmean_columns(X.data, X.indices, X.shape)
7677

7778

7879
@old_positionals(

0 commit comments

Comments
 (0)