Skip to content

FutureWarning from PintIndex #322

@brendan-m-murphy

Description

@brendan-m-murphy

I get the following warning in several contexts:

FutureWarning: the signature ``pint_xarray.index.PintIndex.equals(self, other)`` is deprecated. Please update it to ``pint_xarray.index.PintIndex.equals(self, other, *, exclude=None)`` or kindly ask the maintainers of ``{index_cls_name}`` to do it. See documentation of xarray.Index.equals() for more info.

This is the calculation that caused it:

 fp["particle_locations_w"] * bc["vmr_w"] * loss_w

Here fp, bc, and loss_w are quantified.

It also happens when just dequantifying, e.g. this line:

result = cast(xr.Dataset, xr.Dataset(sensitivities).pint.dequantify())

This is with:
Pint 0.24.4
pint-xarray 0.5.1
xarray 2025.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions