Skip to content

Commit e82fd28

Browse files
committed
Small fixes to types and name.
1 parent e1d9db5 commit e82fd28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stlearn/preprocessing/log_scale.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ def log1p(
4646

4747

4848
def scale(
49-
adata: AnnData | np.ndarray | spmatrix,
49+
data: AnnData | spmatrix | np.ndarray,
5050
zero_center: bool = True,
5151
max_value: float | None = None,
5252
copy: bool = False,
53-
) -> AnnData | None:
53+
) -> AnnData | spmatrix | np.ndarray | None:
5454
"""\
5555
Wrap function of scanpy.pp.scale
5656
@@ -61,7 +61,7 @@ def scale(
6161
the future, they might be set to NaNs.
6262
Parameters
6363
----------
64-
data
64+
data:
6565
The (annotated) data matrix of shape `n_obs` × `n_vars`.
6666
Rows correspond to cells and columns to genes.
6767
zero_center
@@ -74,11 +74,11 @@ def scale(
7474
determines whether a copy is returned.
7575
Returns
7676
-------
77-
Depending on `copy` returns or updates `adata` with a scaled `adata.X`.
77+
Depending on `copy` returns or updates `data` with a scaled `data.X`.
7878
"""
7979

8080
result = scanpy.pp.scale(
81-
adata, zero_center=zero_center, max_value=max_value, copy=copy
81+
data, zero_center=zero_center, max_value=max_value, copy=copy
8282
)
8383
print("Scale step is finished in adata.X")
8484
return result

0 commit comments

Comments
 (0)