Skip to content

Improve wsinterp docstrings and test function #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reword from generating to generate in comment
  • Loading branch information
bobleesj committed Dec 13, 2024
commit a2f244dc90d30cfb28efe3a3493a990fbca93194
3 changes: 2 additions & 1 deletion src/diffpy/utils/resampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def wsinterp(x, xp, fp, left=None, right=None):
Reconstruct a continuous signal from discrete data points by utilizing sinc functions
as interpolation kernels. This function interpolates the values of fp (array),
which are defined over xp (array), at new points x (array or float).
The implementation is based on E. T. Whittaker's 1915 paper (https://doi.org/10.1017/S0370164600017806).
The implementation is based on E. T. Whittaker's 1915 paper
(https://doi.org/10.1017/S0370164600017806).

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_wsinterp():
x = np.array([i * ssr for i in range(-n - 1, n + 2, 1)])
assert len(xp) == 11 and len(x) == 13

# Generating a new set of fp values across 10 trial runs
# Generate a new set of fp values across 10 trial runs
trials = 10

for _ in range(trials):
Expand Down
Loading