diff --git a/doc/whatsnew.rst b/doc/whatsnew.rst index efdf8a23..312213d8 100644 --- a/doc/whatsnew.rst +++ b/doc/whatsnew.rst @@ -6,14 +6,18 @@ What's new :backlinks: none :depth: 1 -Next release -============ +.. Next release +.. ============ + +v1.7.0 (2021-07-22) +=================== - Add :func:`.computations.interpolate` and supporting :meth:`.AttrSeries.interp` (:pull:`48`). This code works around issues `pandas#25460 `_ and `pandas#31949 `_. - :meth:`.Computer.cache` now also invalidates cache if the compiled bytecode of the decorated function changes (:pull:`48`). - Separate and expand docs of :doc:`cache` to show how to check modification time and/or contents of files (:issue:`49`, :pull:`48`). - Add :attr:`.Quantity.units` attribute for access to units (:pull:`48`). +- :attr:`.AttrSeries.dims` and :attr:`.AttrSeries.coords` behave like :class:`~xarray.DataArray` for 1-D quantities (:pull:`48`) v1.6.0 (2021-07-07) =================== diff --git a/genno/computations.py b/genno/computations.py index 0b71340d..5aa55870 100644 --- a/genno/computations.py +++ b/genno/computations.py @@ -304,9 +304,9 @@ def interpolate( ) -> Quantity: """Interpolate `qty`. - For the meaning of arguments, see :meth:`.DataArray.interp`. When :data:`.CLASS` is - :class:`.AttrSeries`, only 1-dimensional interpolation (one key in `coords`) is - tested/supported. + For the meaning of arguments, see :meth:`xarray.DataArray.interp`. When + :data:`.CLASS` is :class:`.AttrSeries`, only 1-dimensional interpolation (one key + in `coords`) is tested/supported. """ if assume_sorted is not True: log.warning(f"interpolate(…, assume_sorted={assume_sorted}) ignored")