Skip to content

Commit 6f956fa

Browse files
committed
chore: add deprecation of copy_on_write_X
1 parent c87dc0a commit 6f956fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/anndata/_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def __doc__(self):
398398

399399

400400
settings = SettingsManager()
401-
401+
settings.deprecate("copy_on_write_X", "0.14")
402402
##################################################################################
403403
# PLACE REGISTERED SETTINGS HERE SO THEY CAN BE PICKED UP FOR DOCSTRING CREATION #
404404
##################################################################################
@@ -517,7 +517,7 @@ def validate_sparse_settings(val: Any, settings: SettingsManager) -> None:
517517

518518
settings.register(
519519
"copy_on_write_X",
520-
default_value=False,
520+
default_value=True,
521521
description=(
522522
"Whether to copy-on-write X. "
523523
"Currently `my_adata_view[subset].X = value` will write back to the original AnnData object at the `subset` location. "

0 commit comments

Comments
 (0)