Skip to content
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

Check docstring for wsinterp() #323

Open
Tieqiong opened this issue Jan 24, 2025 · 0 comments
Open

Check docstring for wsinterp() #323

Tieqiong opened this issue Jan 24, 2025 · 0 comments

Comments

@Tieqiong
Copy link
Contributor

Tieqiong commented Jan 24, 2025

Problem

In resampler.py the function wsinterp() has docstring that says

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].

This doesn't make sense, and it's also not what the code is doing. I think xp[-1] here should be xp[0].

Proposed solution

As suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant