Skip to content

FutureWarning: xarray --return type of Dataset.dims will be changed #800

@prjemian

Description

@prjemian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions