From 02a294e15b7ba2534a959554451a00485e3c1d1b Mon Sep 17 00:00:00 2001 From: stevenhua0320 Date: Thu, 20 Nov 2025 15:38:44 -0500 Subject: [PATCH 1/2] fix: fix docstring to interpolate right entry. --- news/docstring-fix.rst | 24 ++++++++++++++++++++++++ src/diffpy/utils/resampler.py | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 news/docstring-fix.rst diff --git a/news/docstring-fix.rst b/news/docstring-fix.rst new file mode 100644 index 0000000..11ec4ce --- /dev/null +++ b/news/docstring-fix.rst @@ -0,0 +1,24 @@ +**Added:** + +* No News Added: Fix docstring + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* + diff --git a/src/diffpy/utils/resampler.py b/src/diffpy/utils/resampler.py index ca93761..6003574 100644 --- a/src/diffpy/utils/resampler.py +++ b/src/diffpy/utils/resampler.py @@ -38,7 +38,7 @@ def wsinterp(x, xp, fp, left=None, right=None): The array of y values associated with xp. left: float If given, set fp for x < xp[0] to left. Otherwise, if left is None - (default) or not given, set fp for x < xp[0] to fp evaluated at xp[-1]. + (default) or not given, set fp for x < xp[0] to fp evaluated at xp[0]. right: float If given, set fp for x > xp[-1] to right. Otherwise, if right is None (default) or not given, set fp for x > xp[-1] to fp evaluated at From 3dee8fadb438752f44c45a8023a910b400f47418 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 20:39:30 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit hooks --- news/docstring-fix.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/news/docstring-fix.rst b/news/docstring-fix.rst index 11ec4ce..fc596a6 100644 --- a/news/docstring-fix.rst +++ b/news/docstring-fix.rst @@ -21,4 +21,3 @@ **Security:** * -