Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FutureWarning: Change in Dataset.dims Return Type #145

Closed
Azaya89 opened this issue Jun 26, 2024 · 0 comments · Fixed by #146
Closed

FutureWarning: Change in Dataset.dims Return Type #145

Azaya89 opened this issue Jun 26, 2024 · 0 comments · Fixed by #146

Comments

@Azaya89
Copy link

Azaya89 commented Jun 26, 2024

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

  • python=3.11
  • xarray=0.19.0
  • intake-xarray=0.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant