Skip to content

Commit

Permalink
go back to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 committed Oct 15, 2024
1 parent 13760b7 commit b9e4931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rapids_singlecell/preprocessing/_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def log1p(
X = X.log1p()
elif isinstance(X, DaskArray):
if isinstance(X._meta, cp.ndarray):
X = X.map_blocks(cp.log1p, meta=_meta_dense(X.dtype))
X = X.map_blocks(lambda x: cp.log1p(x), meta=_meta_dense(X.dtype))
elif isinstance(X._meta, sparse.csr_matrix):
X = X.map_blocks(lambda x: x.log1p(), meta=_meta_sparse(X.dtype))
adata.uns["log1p"] = {"base": None}
Expand Down

0 comments on commit b9e4931

Please sign in to comment.