Skip to content

Conversation

@copybara-service
Copy link

Round-up zarr shards when they are equal to the full dimension size

Otherwise, it is extremely hard to use shards for dimensions with irregular sizes (e.g., "time" in a reanalysis dataset).

With this change, a dataset with sizes={'x': 19} and chunks={'x': 10} can be sharded with shards={'x': 20}.

Otherwise, it is extremely hard to use shards for dimensions with irregular sizes (e.g., "time" in a reanalysis dataset).

With this change, a dataset with `sizes={'x': 19}` and `chunks={'x': 10}` can be sharded with `shards={'x': 20}`.

PiperOrigin-RevId: 827316686
@copybara-service copybara-service bot merged commit 7ea8f69 into main Nov 3, 2025
@copybara-service copybara-service bot deleted the test_826918106 branch November 3, 2025 05:50
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