.. currentmodule:: xarray
- drop support for python 3.9 (:pull:`266`) By Justus Magin.
- create a PintIndex to allow units on indexed coordinates (:pull:`163`, :issue:`162`) By Justus Magin and Benoit Bovy.
- fix :py:meth:`Dataset.pint.interp` and :py:meth:`DataArray.pint.interp` bug failing to pass through arguments (:pull:`270`, :issue:`267`) By Martijn van der Marel
adopt SPEC0 (:pull:`228`)
This means that the supported versions change:
dependency
old minimum
new minimum
python
3.8
3.9
xarray
0.16.1
2022.06.0
numpy
1.17
1.23
pint
0.16
0.21
By Justus Magin.
add support for python 3.11 and 3.12 (:pull:`228`, :pull:`263`) By Justus Magin.
ignore datetime units on attributes (:pull:`241`) By Justus Magin.
- drop support for python 3.7 (:pull:`153`) By Justus Magin.
- add support for python 3.10 (:pull:`155`) By Justus Magin.
- preserve :py:class:`pandas.MultiIndex` objects (:issue:`164`, :pull:`168`). By Justus Magin.
- fix "quantifying" dimension coordinates (:issue:`105`, :pull:`174`). By Justus Magin.
- allow using :py:meth:`DataArray.pint.quantify` and :py:meth:`Dataset.pint.quantify` as identity operators (:issue:`47`, :pull:`175`). By Justus Magin.
- allow special "no unit" values in :py:meth:`Dataset.pint.quantify` and :py:meth:`DataArray.pint.quantify` (:pull:`125`) By Justus Magin.
- convert the note about dimension coordinates saving their units in the attributes a warning (:issue:`124`, :pull:`126`) By Justus Magin.
- improve the documentation on the
format
parameter of :py:meth:`Dataset.pint.dequantify` and :py:meth:`DataArray.pint.dequantify` (:issue:`121`, :pull:`127`, :pull:`132`) By Justus Magin. - use cf-xarray's unit registry in the plotting example (:issue:`107`, :pull:`128`). By Justus Magin.
- rewrite :py:meth:`Dataset.pint.quantify` and :py:meth:`DataArray.pint.quantify`, to
use pint's
UnitRegistry.parse_units
instead ofUnitRegistry.parse_expression
(:issue:`40`) By Tom Nicholas. - ensure the variables which causes the error is explicit if an error occurs in :py:meth:`Dataset.pint.quantify` and other methods (:pull:`43`, :issue:`91`) By Tom Nicholas and Justus Magin.
- refactor the internal conversion functions (:pull:`56`) By Justus Magin.
- allow converting indexes (except :py:class:`pandas.MultiIndex`) (:pull:`56`) By Justus Magin.
- document the reason for requiring the
force_ndarray_like
orforce_ndarray
options on unit registries (:pull:`59`) By Justus Magin. - allow passing a format string to :py:meth:`Dataset.pint.dequantify` and :py:meth:`DataArray.pint.dequantify` (:pull:`49`) By Justus Magin.
- allow converting all data variables in a Dataset to the same units using :py:meth:`Dataset.pint.to` (:issue:`45`, :pull:`63`). By Mika Pflüger.
- update format of examples in docstrings (:pull:`64`). By Mika Pflüger.
- implement :py:meth:`Dataset.pint.sel` and :py:meth:`DataArray.pint.sel` (:pull:`60`). By Justus Magin.
- implement :py:attr:`Dataset.pint.loc` and :py:attr:`DataArray.pint.loc` (:pull:`79`). By Justus Magin.
- implement :py:meth:`Dataset.pint.drop_sel` and :py:meth:`DataArray.pint.drop_sel` (:pull:`73`). By Justus Magin.
- implement :py:meth:`Dataset.pint.chunk` and :py:meth:`DataArray.pint.chunk` (:pull:`83`). By Justus Magin.
- implement :py:meth:`Dataset.pint.reindex`, :py:meth:`Dataset.pint.reindex_like`, :py:meth:`DataArray.pint.reindex` and :py:meth:`DataArray.pint.reindex_like` (:pull:`69`). By Justus Magin.
- implement :py:meth:`Dataset.pint.interp`, :py:meth:`Dataset.pint.interp_like`, :py:meth:`DataArray.pint.interp` and :py:meth:`DataArray.pint.interp_like` (:pull:`72`, :pull:`76`, :pull:`97`). By Justus Magin.
- implement :py:meth:`Dataset.pint.ffill`, :py:meth:`Dataset.pint.bfill`, :py:meth:`DataArray.pint.ffill` and :py:meth:`DataArray.pint.bfill` (:pull:`78`). By Justus Magin.
- implement :py:meth:`Dataset.pint.interpolate_na` and :py:meth:`DataArray.pint.interpolate_na` (:pull:`82`). By Justus Magin.
- expose :py:func:`pint_xarray.setup_registry` as public API (:pull:`89`) By Justus Magin.
- add initial draft of documentation (:pull:`13`, :pull:`20`)
- implement :py:meth:`DataArray.pint.to` and :py:meth:`Dataset.pint.to` (:pull:`11`)
- rewrite :py:meth:`DataArray.pint.quantify`, :py:meth:`Dataset.pint.quantify`, :py:meth:`DataArray.pint.dequantify` and :py:meth:`Dataset.pint.dequantify` (:pull:`17`)
- expose :py:func:`pint_xarray.testing.assert_units_equal` as public API (:pull:`24`)
- fix the :py:attr:`DataArray.pint.units`, :py:attr:`DataArray.pint.magnitude` and :py:attr:`DataArray.pint.dimensionality` properties and add docstrings for all three. (:pull:`31`)
- use
pint
's application registry as a module-global registry (:pull:`32`)