Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding support for one-sided clipping #8990

Closed
@alexlenail

Description

@alexlenail

Hello Numpy,

I'm using the clip function, and have realized I only want to clip on one side. Setting only a_min results in

TypeError: clip() missing 1 required positional argument: 'a_max'

I see this conversation from 2007, but I'm unclear as to what the conclusion attained is.

Would it be possible to support 1-sided clipping. If not, is there a better way to do this (which could be linked to in the numpy documentation?)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions