Skip to content

test(codecs): check numcodecs filters encode to their declared shape - #4591

Merged
d-v-b merged 2 commits into
zarr-developers:mainfrom
d-v-b:fix/numcodecs-filter-shape-followup
Nov 2, 2026
Merged

d-v-b merged 2 commits into
zarr-developers:mainfrom
d-v-b:fix/numcodecs-filter-shape-followup

Conversation

@d-v-b

@d-v-b d-v-b commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains minor follow-ups to #4560 that expand the space of tests to more carefully check the bug fixed in that PR

[x] I'm a meat-based entity

🤖 AI text below 🤖

This PR replaces a PackBits round-trip test added in #4560, which passed with or without that PR's fix, with one parametrized test asserting that each numcodecs filter's encoded chunk has the shape resolve_metadata declares. It also rewrites the #4560 changelog fragment so it describes the user-visible change without naming private methods.

Details

🤖 Generated with Claude Code

d-v-b added 2 commits November 2, 2026 08:52
Replace the PackBits round-trip test, which passed with or without the
zarr-developersgh-4553 fix, with one parametrized test asserting that every numcodecs
filter's encoded chunk has the shape `resolve_metadata` declares. It
covers the 2-element PackBits chunk, where the packed length equals the
chunk size. Rewrite the 4560 changelog fragment without private names.

Assisted-by: ClaudeCode:claude-opus-5-5
@d-v-b
d-v-b marked this pull request as ready for review November 2, 2026 08:47
@d-v-b

d-v-b commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

self-merging because this is a minor improvement to test coverage with no user-facing impact

@d-v-b
d-v-b merged commit 7105939 into zarr-developers:main Nov 2, 2026
38 checks passed
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