pint_xarray.setup_registry

pint_xarray.setup_registry(registry)

set up the given registry for use with pint_xarray

Namely, it enables force_ndarray_like to make sure results are always duck arrays.

Parameters:

registry (pint.UnitRegistry) – The registry to modify