Describe the new feature you'd like
In the past I'd use code as follows:
import xarray as xr
from upath import UPath
s3_path = UPath("s3://my-bucket/my-key.zarr/")
ds = xr.open_dataarray(s3_path, engine="zarr", chunks={})
This recently stopped working (I think because upath.S3Path no longer implements __fspath__, not entirely sure though).
Right now xarray just passes the upath directly to zarr.open(). Personally I think it would make sense that the zarr.open supports a UPath as a parameter, seeing that universal-pathlib is already an optional dependency.
Describe the new feature you'd like
In the past I'd use code as follows:
This recently stopped working (I think because upath.S3Path no longer implements
__fspath__, not entirely sure though).Right now xarray just passes the upath directly to
zarr.open(). Personally I think it would make sense that thezarr.opensupports a UPath as a parameter, seeing that universal-pathlib is already an optional dependency.