Skip to content

Check docstring for wsinterp() #323

Open
@Tieqiong

Description

@Tieqiong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions