pint-xarray icon indicating copy to clipboard operation
pint-xarray copied to clipboard

Interface for using pint with xarray, providing convenience accessors

Results 29 pint-xarray issues
Sort by recently updated
recently updated
newest added

Looks like [we forgot](https://github.com/xarray-contrib/pint-xarray/issues/6#issuecomment-611320179) to ensure that `@ureg.wraps` works - see this example (inspired by [this story](https://www.simscale.com/blog/2017/12/nasa-mars-climate-orbiter-metric/)): ```python from pint_xarray import unit_registry as ureg @ureg.wraps(ret=None, args=["Newtons / second^2"]) def jpl_trajectory_code(acceleration):...

It would be absolutely great to be able to propagate unit-aware arrays with uncertainties through xarray, but it's unclear to me [to what extent](https://github.com/lebigot/uncertainties/issues/86) pint is currently integrated with the...

``` python from cf_xarray.units import units 220 * units.degrees_east == (-140 * units.degrees_east) ``` is `False`. Can this be `True` instead?

upstream changes

@jthielen proposed a rough accessor API in [pint/#849](https://github.com/hgrecco/pint/issues/849#issuecomment-579992247), to which I've added a couple of things: **DataArray**: - [x] `da.pint.to(...)`: return dataarray with converted units (#11) - [ ] `da.pint.to_base_units()`:...

Right now, trying to use the `.plot` accessor without dequantifying first will strip the units so `matplotlib` never sees the quantities and can't use the converter registered by `UnitRegistry.setup_matplotlib()`. This...

Part of xarray's roadmap is to elevate indexes to be an explicit part of their data model. The task is discussed [here](https://github.com/pydata/xarray/issues/1603) and there's an overview of the project [here](https://github.com/pydata/xarray/projects/1)....

upstream changes
indexing

Easiest way to demonstrate would be with an example notebook similar to that [given for pint-pandas](https://github.com/hgrecco/pint-pandas/blob/master/notebooks/pandas_support.ipynb).

Hi folks, I noticed that when running `.rolling(...)` on a _chunked_ `pint` array, there is an exception raised that breaks the process: ```python-traceback TypeError: `pad_value` must be composed of integral...

updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/psf/black: 24.1.1 → 24.3.0](https://github.com/psf/black/compare/24.1.1...24.3.0)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.1.0 to 4.2.0. Release notes Sourced from codecov/codecov-action's releases. v4.2.0 What's Changed chore(deps): update deps by @​thomasrockhu-codecov in codecov/codecov-action#1351 feat: allow for authentication via OIDC token by...

dependencies