Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Aug 14, 2024
1 parent 24b6182 commit e773307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_merge_partition_single(self):
partitions = [self.uds]
back = xu.merge_partitions(partitions)
assert back == self.uds

def test_merge_partitions__errors(self):
partitions = self.uds.ugrid.partition(n_part=2)
with pytest.raises(TypeError, match="Expected UgridDataArray or UgridDataset"):
Expand Down
2 changes: 1 addition & 1 deletion xugrid/ugrid/partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def merge_partitions(partitions, merge_ugrid_chunks: bool = True):
# return first partition if single partition is provided
if len(partitions) == 1:
return next(iter(partitions))

# Collect grids
grids = [grid for p in partitions for grid in p.grids]
ugrid_dims = {dim for grid in grids for dim in grid.dimensions}
Expand Down

0 comments on commit e773307

Please sign in to comment.