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

Make penalize_range more efficient #287

Merged
merged 4 commits into from
Aug 26, 2024
Merged

Conversation

billbrod
Copy link
Collaborator

Small change: use clip instead of boolean indexing for penalize_range. Computes the same thing, but is much more efficient.

@billbrod billbrod merged commit ac59cea into main Aug 26, 2024
11 checks passed
@billbrod billbrod deleted the penalize_range_efficiency branch August 26, 2024 22:19
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

Successfully merging this pull request may close these issues.

1 participant