Skip to content

Comments

Rename pp copy argument to inplace#190

Merged
casblaauw merged 2 commits intomainfrom
pp_inplace
Feb 12, 2026
Merged

Rename pp copy argument to inplace#190
casblaauw merged 2 commits intomainfrom
pp_inplace

Conversation

@casblaauw
Copy link
Collaborator

I added the copy argument in #180, to toggle in-place vs returned behaviour for the preprocessing functions. I preferred the name inplace, but thought scanpy was using copy. Turns out they're not incredibly consistent (i'm seeing inplace in filter_cells, but copy in log1p), so if they're not consistent I'm taking the liberty to use inplace.

This also adds tests for equivalence of using all pp functions with inplace=True vs inplace=False.

@casblaauw casblaauw merged commit 71ef0f4 into main Feb 12, 2026
16 of 18 checks passed
@casblaauw casblaauw deleted the pp_inplace branch February 12, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant