Skip to content

Commit

Permalink
Merge pull request #254 from Deltares/190-resolve-datasetdims-futurew…
Browse files Browse the repository at this point in the history
…arning

replaced ds.dims[dim] with ds.sizes[dim]
  • Loading branch information
Huite authored Jul 9, 2024
2 parents 292bbf8 + f8b77ee commit 412d9ae
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 412d9ae

Please sign in to comment.