Skip to content

Commit 195fc2e

Browse files
authored
one more type fix (#575)
1 parent 37adadb commit 195fc2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cf_xarray/geometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ def reshape_unique_geometries(
412412
out = out.unstack(temp_name)
413413

414414
# geom_var was reshaped also, reconstruct it from the unique values.
415-
unique_indexes = xr.DataArray(unique_indexes, dims=(new_dim,))
416-
out[geom_var] = ds[geom_var].isel({old_name: unique_indexes})
415+
unique_indexes_da = xr.DataArray(unique_indexes, dims=(new_dim,))
416+
out[geom_var] = ds[geom_var].isel({old_name: unique_indexes_da})
417417
if old_name not in ds.coords:
418418
# If there was no coord before, drop the dummy one we made.
419419
out = out.drop_vars(old_name) # type: ignore[arg-type,unused-ignore] # Hashable/str stuff

0 commit comments

Comments
 (0)