Skip to content

Commit 0db0b96

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 53cc744 commit 0db0b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cf_xarray/geometry.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ def cf_to_lines(ds: xr.Dataset):
438438
geoms = np.where(np.diff(offset2) == 1, lines[offset2[:-1]], multilines)
439439

440440
return xr.DataArray(geoms, dims=part_node_count.dims, coords=part_node_count.coords)
441-
442-
441+
442+
443443
def grid_to_polygons(ds: xr.Dataset) -> xr.DataArray:
444444
"""
445445
Converts a regular 2D lat/lon grid to a 2D array of shapely polygons.

0 commit comments

Comments
 (0)