Skip to content

Commit 5cd6013

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f0b149a commit 5cd6013

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
@@ -583,7 +583,7 @@ def cf_to_polygons(ds: xr.Dataset):
583583

584584
# get items from polygons or multipolygons depending on number of parts
585585
geoms = np.where(np.diff(offset3) == 1, polygons[offset3[:-1]], multipolygons)
586-
586+
587587
return xr.DataArray(geoms, dims=node_count.dims, coords=node_count.coords)
588588

589589

@@ -597,7 +597,7 @@ def grid_to_polygons(ds: xr.Dataset) -> xr.DataArray:
597597
----------
598598
ds : xr.Dataset
599599
Dataset with "latitude" and "longitude" variables as well as their bounds variables.
600-
1D and 2D "latitude" and "longitude" variables are supported. 1D variables will
600+
1D and 2D "latitude" and "longitude" variables are supported. 1D variables will
601601
be broadcast against each other.
602602
603603
Returns

0 commit comments

Comments
 (0)