Generator comprehension instead of a set. Dimensions just needs to be iterable.
MODIFY
pangeo_forge_recipes/recipes/xarray_zarr.py
pangeo_forge_recipes/recipes/xarray_zarr.py
@@ -555,7 +555,7 @@ def finalize_target(*, config: XarrayZarrRecipe) -> None:
# https://github.com/pangeo-forge/pangeo-forge-recipes/issues/214
# intersect the dims from the array metadata with the Zarr group
# to handle coordinateless dimensions.
- dims = {dim for dim in _gather_coordinate_dimensions(group) if dim in group}
+ dims = (dim for dim in _gather_coordinate_dimensions(group) if dim in group)
for dim in dims:
arr = group[dim]
attrs = dict(arr.attrs)

Generator comprehension instead of a set. Dimensions just needs to be iterable.