Skip to content

chore: disable zarr v2 writing (at least as far as we can control it) - #2628

Merged
ilan-gold merged 16 commits into
mainfrom
ig/no_zarr_v2_writes
Sep 8, 2026
Merged

ilan-gold merged 16 commits into
mainfrom
ig/no_zarr_v2_writes

Conversation

@ilan-gold

@ilan-gold ilan-gold commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

2 reasons to do this:

  1. Fewer tests mean faster completion
  2. No one should be writing v2 data anymore given that all reasonable data is in-spec writable and spatial data has upgraded (and anndataR can now read v3 data as well: https://anndatar.scverse.org/reference/write_zarr.html?q=v3#zarr-format)

I'm setting this as a 0.13.4 to remind myself to backport the functionality by deprecating instead of removing the setting. I will then add a test for that as well as a sensible release note for the 0.13.4 release.

  • Closes #
  • Tests added
  • Release note not necessary because:

@ilan-gold ilan-gold added this to the 0.13.4 milestone Sep 1, 2026
@codecov

codecov Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.80%. Comparing base (26ba98f) to head (c01c26d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2628      +/-   ##
==========================================
- Coverage   87.67%   85.80%   -1.87%     
==========================================
  Files          49       49              
  Lines        8138     8123      -15     
==========================================
- Hits         7135     6970     -165     
- Misses       1003     1153     +150     
Files with missing lines Coverage Δ
src/anndata/_io/zarr.py 86.04% <100.00%> (-0.53%) ⬇️
src/anndata/_settings.py 100.00% <100.00%> (ø)
src/anndata/experimental/merge.py 88.47% <100.00%> (-0.24%) ⬇️
src/anndata/tests/helpers.py 83.89% <100.00%> (-8.83%) ⬇️

... and 7 files with indirect coverage changes

@ilan-gold
ilan-gold marked this pull request as ready for review September 3, 2026 21:00

@flying-sheep flying-sheep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and simple enough!

Comment thread tests/test_readwrite.py Resolved
Comment thread src/anndata/_io/zarr.py Resolved
@ilan-gold
ilan-gold enabled auto-merge (squash) September 8, 2026 14:06
@ilan-gold
ilan-gold merged commit ad6c4f4 into main Sep 8, 2026
23 checks passed
@ilan-gold
ilan-gold deleted the ig/no_zarr_v2_writes branch September 8, 2026 14:26
@lumberbot-app

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants