Skip to content

feat: implement the reshape extension codec - #4542

Open
clbarnes wants to merge 3 commits into
zarr-developers:mainfrom
clbarnes:reshape
Open

clbarnes wants to merge 3 commits into
zarr-developers:mainfrom
clbarnes:reshape

Conversation

@clbarnes

@clbarnes clbarnes commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves #4541 .

Implements the reshape extension codec.
This codec was recommended for inclusion in mainline zarr-python because it will be built on top of by other codecs (e.g. most image codecs).

Author attestation

  • I am a human, these are my changes, and I have reviewed and understood every change and can explain why each is correct.

TODO

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.md
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@github-actions github-actions Bot added the needs release notes Automatically applied to PRs which haven't added release notes label Oct 21, 2026
@github-actions github-actions Bot removed the needs release notes Automatically applied to PRs which haven't added release notes label Oct 21, 2026
@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.93617% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.74%. Comparing base (3d73e29) to head (cde8c5d).

Files with missing lines Patch % Lines
src/zarr/codecs/reshape.py 98.91% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4542      +/-   ##
==========================================
+ Coverage   94.71%   94.74%   +0.02%     
==========================================
  Files          94       95       +1     
  Lines       13663    13757      +94     
==========================================
+ Hits        12941    13034      +93     
- Misses        722      723       +1     
Files with missing lines Coverage Δ
src/zarr/codecs/__init__.py 100.00% <100.00%> (ø)
src/zarr/codecs/reshape.py 98.91% <98.91%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

Reshape codec

1 participant