From 25cd1479918b4933751f6dd9668d2b80a30b6f0e Mon Sep 17 00:00:00 2001 From: ilgast <139154414+ilgast@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:16:03 +0200 Subject: [PATCH 1/3] Update interpolate_na in dataset.py --- xarray/core/dataset.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 8898cff789a..71263f515c5 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -5806,6 +5806,11 @@ def interpolate_na( interpolated: Dataset Filled in Dataset. + Warning + -------- + When passing fill_value as a keyword argument with method="linear", it does not use + numpy.interp but it uses scipy.interpolate.interp1d(), which provides the fill_value parameter. + See Also -------- numpy.interp From 75155ffb21b230c68cbd37feed9b7be0283fbe21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 20:20:24 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/core/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 71263f515c5..541b8fd05d2 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -5808,7 +5808,7 @@ def interpolate_na( Warning -------- - When passing fill_value as a keyword argument with method="linear", it does not use + When passing fill_value as a keyword argument with method="linear", it does not use numpy.interp but it uses scipy.interpolate.interp1d(), which provides the fill_value parameter. See Also From c09e91b4ab9340b79d17dced33264c8407475765 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Mon, 24 Jul 2023 09:50:42 -0600 Subject: [PATCH 3/3] Update xarray/core/dataset.py --- xarray/core/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 541b8fd05d2..bb2b6461352 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -5809,7 +5809,7 @@ def interpolate_na( Warning -------- When passing fill_value as a keyword argument with method="linear", it does not use - numpy.interp but it uses scipy.interpolate.interp1d(), which provides the fill_value parameter. + ``numpy.interp`` but it uses ``scipy.interpolate.interp1d``, which provides the fill_value parameter. See Also --------