Skip to content

Commit

Permalink
add bugfixes in whats_new.rst, fixes pydata#8762
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarasiak committed Jun 8, 2024
1 parent f2856d6 commit cb212e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ Deprecations
Bug fixes
~~~~~~~~~

- Following `DataArrayResample.interpolate and passing kwargs
<https://github.com/pydata/xarray/issues/8762>`_ interpolate method now
supports kwargs such as order for producing the polynomial interpolation.
(:issue:`8762`). By
`Nicolas Karasiak <https://github.com/nkarasiak>`_.


Documentation
~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _interpolate(self, kind="linear", **kwargs) -> T_Xarray:
"""Apply scipy.interpolate.interp1d along resampling dimension."""
obj = self._drop_coords()
(grouper,) = self.groupers
kwargs.update({"bounds_error": False})
kwargs.update({"bounds_error": False})
return obj.interp(
coords={self._dim: grouper.full_index},
assume_sorted=True,
Expand Down

0 comments on commit cb212e2

Please sign in to comment.