We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
clip
Add sc.clip corresponding to np.clip https://numpy.org/doc/stable/reference/generated/numpy.clip.html Alternatively, it can be called clamp (https://en.cppreference.com/w/cpp/algorithm/clamp) which I think is more common in graphics programming.
sc.clip
np.clip
clamp
Currently, we need to either use numpy or workaround it like this
var = sc.where(var < lo, lo, var) var = sc.where(var > hi, hi, var)
I encountered this for the second time now when setting fit windows and making sure they are within the range of the data.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add
sc.clip
corresponding tonp.clip
https://numpy.org/doc/stable/reference/generated/numpy.clip.htmlAlternatively, it can be called
clamp
(https://en.cppreference.com/w/cpp/algorithm/clamp) which I think is more common in graphics programming.Currently, we need to either use numpy or workaround it like this
I encountered this for the second time now when setting fit windows and making sure they are within the range of the data.
The text was updated successfully, but these errors were encountered: