Skip to content

fix(loader): make zarr shard shape a multiple of chunk shape for shor… - #4

Merged
fei-yang-wu merged 1 commit into
mainfrom
fix/zarr-short-traj-sharding
Jul 13, 2026
Merged

fix(loader): make zarr shard shape a multiple of chunk shape for shor…#4
fei-yang-wu merged 1 commit into
mainfrom
fix/zarr-short-traj-sharding

Conversation

@fei-yang-wu

Copy link
Copy Markdown
Member

…t trajectories

Trajectories shorter than shard_size collapsed the shard dim to the trajectory length (e.g. T=341), which is generally not a multiple of chunk_size (64), so zarr v3 rejected the array ('chunk_shape not divisible by inner chunk_shape'). Round the leading shard dim down to a multiple of the leading chunk dim. Long trajectories (T>=shard_size) are unaffected.

…t trajectories

Trajectories shorter than shard_size collapsed the shard dim to the trajectory
length (e.g. T=341), which is generally not a multiple of chunk_size (64), so
zarr v3 rejected the array ('chunk_shape not divisible by inner chunk_shape').
Round the leading shard dim down to a multiple of the leading chunk dim. Long
trajectories (T>=shard_size) are unaffected.
@fei-yang-wu
fei-yang-wu merged commit d3d5532 into main Jul 13, 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