Skip to content

Commit

Permalink
just save bool
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Sep 10, 2024
1 parent 56e5adb commit f9be618
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cf_xarray/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,7 @@ def polygons_to_cf(

# Special case when we have no holes
if interior_ring.any():
ds[names.interior_ring] = xr.DataArray(
interior_ring.view(np.int8), dims=names.part_dim
)
ds[names.interior_ring] = xr.DataArray(interior_ring, dims=names.part_dim)
ds[names.container_name].attrs["interior_ring"] = names.interior_ring
return ds

Expand Down

0 comments on commit f9be618

Please sign in to comment.