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

Fixes an issue in the double peak filter #34

Merged
merged 1 commit into from
Oct 30, 2022

Conversation

rettier
Copy link
Contributor

@rettier rettier commented Aug 25, 2022

Javascript's sort sorts alphabetically by the string representation, resulting in seemingly random energies when small numbers are involved. This is because the string representation eventually changes to scientific notation.

image

This PR fixes it by passing a comparator.

@Ravenstine
Copy link
Owner

@rettier Thanks for your contribution! Sorry for the late response. I started a new position right before you made this pull request and my attention diverted away from GitHub. This makes sense and it probably explains why I've had issues with this filter in the past. There's a more functional refactor of this project in progress, so it will be good to have this working properly.

@Ravenstine Ravenstine merged commit d6abc06 into Ravenstine:master Oct 30, 2022
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.

2 participants