Skip to content

Commit f546c5e

Browse files
committed
Fix merge
1 parent 4008a28 commit f546c5e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/scanpy/preprocessing/_scale.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
if TYPE_CHECKING:
3232
from numpy.typing import ArrayLike, NDArray
33-
from numpy.typing import NDArray
3433
from scipy import sparse as sp
3534

3635
CSMatrix = sp.csr_matrix | sp.csc_matrix
@@ -79,14 +78,6 @@ def clip_array(
7978
return X
8079

8180

82-
def clip_set(x: CSMatrix, *, max_value: float, zero_center: bool = True) -> CSMatrix:
83-
x = x.copy()
84-
x[x > max_value] = max_value
85-
if zero_center:
86-
x[x < -max_value] = -max_value
87-
return x
88-
89-
9081
@renamed_arg("X", "data", pos_0=True)
9182
@old_positionals("zero_center", "max_value", "copy", "layer", "obsm")
9283
@singledispatch

0 commit comments

Comments
 (0)