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

[BUG] new versions of xarray raise a future warning #101

Closed
rcaneill opened this issue Mar 7, 2024 · 1 comment · Fixed by #117
Closed

[BUG] new versions of xarray raise a future warning #101

rcaneill opened this issue Mar 7, 2024 · 1 comment · Fixed by #117

Comments

@rcaneill
Copy link
Owner

rcaneill commented Mar 7, 2024

/home/docs/checkouts/readthedocs.org/user_builds/xnemogcm/envs/100/lib/python3.10/site-packages/xgcm/grid_ufunc.py:832: 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`.
  out_dim: grid._ds.dims[out_dim] for arg in out_core_dims for out_dim in arg
@rcaneill
Copy link
Owner Author

rcaneill commented Mar 7, 2024



/home/docs/checkouts/readthedocs.org/user_builds/xnemogcm/envs/100/lib/python3.10/site-packages/xnemogcm/nemo.py:78: 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`.
  z_nme = [i for i in ds.dims.keys() if "depth" in i][0]
/home/docs/checkouts/readthedocs.org/user_builds/xnemogcm/envs/100/lib/python3.10/site-packages/xnemogcm/nemo.py:84: 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`.
  x_nme = [i for i in ds.dims.keys() if "x_grid" in i or i == "x"]
/home/docs/checkouts/readthedocs.org/user_builds/xnemogcm/envs/100/lib/python3.10/site-packages/xnemogcm/nemo.py:86: 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`.
  y_nme = [i for i in ds.dims.keys() if "y_grid" in i or i == "y"]


@rcaneill rcaneill linked a pull request Sep 11, 2024 that will close this issue
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