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: xarray --return type of Dataset.dims will be changed #800

Open
prjemian opened this issue Feb 8, 2024 · 0 comments
Open
Labels

Comments

@prjemian
Copy link
Contributor

prjemian commented Feb 8, 2024

From one of our training notebooks, we get this FutureWarning as we try to read a run from a cat = databroker.catalog[catalog].v2 instance:

run = cat[-1]
metadata=run.metadata
data=run.primary.read()

/home/apsu/Apps/miniconda3/envs/bluesky_2024_1/lib/python3.11/site-packages/xarray/core/utils.py:494: 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.

Thanks @lcgallington, for the report.

@prjemian prjemian added the bug label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant