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

Fix negative pulse triggering #23

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Conversation

slwatkins
Copy link
Member

When applying a threshold that is negative, the code would still try to find the highest positive value (rather than the largest negative going value). This fix simplifies the code and correctly applies the sign fixed by the inputted threshold.

@slwatkins slwatkins added the bug Something isn't working label Nov 1, 2024
@slwatkins slwatkins self-assigned this Nov 1, 2024
@slwatkins slwatkins merged commit 3288057 into main Nov 1, 2024
3 checks passed
@slwatkins slwatkins deleted the bug/negative_pulse_triggering branch November 1, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant