We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37adadb commit 195fc2eCopy full SHA for 195fc2e
cf_xarray/geometry.py
@@ -412,8 +412,8 @@ def reshape_unique_geometries(
412
out = out.unstack(temp_name)
413
414
# 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})
+ unique_indexes_da = xr.DataArray(unique_indexes, dims=(new_dim,))
+ out[geom_var] = ds[geom_var].isel({old_name: unique_indexes_da})
417
if old_name not in ds.coords:
418
# If there was no coord before, drop the dummy one we made.
419
out = out.drop_vars(old_name) # type: ignore[arg-type,unused-ignore] # Hashable/str stuff
0 commit comments