Skip to content

Conversation

@melonora
Copy link
Contributor

@melonora melonora commented Dec 4, 2025

For all _iter_shard methods and functions there is a fallback to chunks when no shards are present, but this is not clear from either the name or the docstring. Though we can't quickly change the names, the docstrings could be more informative. In this PR I adjusted the docstrings.

Note: based on discussion with @d-v-b chunks technically do not have keys, but because of the fallback when shards are not present these are currently returned. Broader discussion will be whether chunks should also return keys.

The current situation stems from the ambiguity in the meanings of 'shard' and 'chunk'.

TODO:

  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@joshmoore

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Dec 4, 2025
Copy link
Contributor

@d-v-b d-v-b left a comment

Choose a reason for hiding this comment

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

this is private API so I think we can skip the release notes. thanks for this work @melonora

@d-v-b d-v-b merged commit 884a8c9 into zarr-developers:main Jan 8, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs release notes Automatically applied to PRs which haven't added release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants