Skip to content

Commit

Permalink
replaced ds.dims[dim] with ds.sizes[dim]
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Jul 9, 2024
1 parent 292bbf8 commit f8b77ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xugrid/ugrid/partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def merge_partitions(partitions, merge_ugrid_chunks: bool = True):
for dim in chunks:
# Define a single chunk for each UGRID dimension.
if dim in ugrid_dims:
chunks[dim] = (merged.dims[dim],)
chunks[dim] = (merged.sizes[dim],)
merged = merged.chunk(chunks)

return UgridDataset(merged, merged_grids)

0 comments on commit f8b77ee

Please sign in to comment.