intake / intake-xarray

Intake plugin for xarray
https://intake-xarray.readthedocs.io/
BSD 2-Clause "Simplified" License
74 stars 36 forks source link

FutureWarning: Change in Dataset.dims Return Type #145

Closed Azaya89 closed 2 months ago

Azaya89 commented 2 months ago

Description

Using to_dask on my intake data source creates a Future warning as follows:

ds = data_source.to_dask()
/Users/<path>/envs/default/lib/python3.11/site-packages/intake_xarray/raster.py:108:
FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`.

I assume this warning indicates that the behavior of the Dataset.dims property will change in a future version of xarray, potentially causing issues.

Current versions