Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chunk key encoding: c prefix for 0-dimensional arrays #282

Open
d-v-b opened this issue Dec 18, 2023 · 0 comments
Open

chunk key encoding: c prefix for 0-dimensional arrays #282

d-v-b opened this issue Dec 18, 2023 · 0 comments

Comments

@d-v-b
Copy link
Contributor

d-v-b commented Dec 18, 2023

can someone help me understand the behavior of 0-dimensional arrays with the default chunk key encoding?

The spec states:

Arrays may have 0 dimensions (when for example representing scalars),
in which case the coordinate of a chunk is the empty tuple, and the chunk key
will consist of the string c.

I interpret this to mean that c is a prefix / directory for 1+dimensional arrays, but c is an object / file for 0 dimensional arrays, which seems strange. Why did we move away from the behavior in V2 (a 0D array has 1 chunk, named 0)?

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

No branches or pull requests

1 participant