Skip to content

singleton_dim codec - #58

Closed
clbarnes wants to merge 2 commits into
zarr-developers:mainfrom
clbarnes:singleton_dim
Closed

singleton_dim codec#58
clbarnes wants to merge 2 commits into
zarr-developers:mainfrom
clbarnes:singleton_dim

Conversation

@clbarnes

Copy link
Copy Markdown
Contributor

Codec for adding or removing 1-length dimensions. Useful in combination with chunk grids or shards which reduce an array dimension down to 1, and codecs which can only be applied to specific dimensionalities (e.g. image codecs which apply to 2 dimensions +/- colour).

An alternative to the reshape codec. We should probably only have one of them.

@clbarnes
clbarnes marked this pull request as ready for review April 29, 2026 14:13
@clbarnes

clbarnes commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

I have been convinced that the additional power of the reshape codec is worth the potential footguns.

@clbarnes clbarnes closed this May 1, 2026
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