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

Replace nan with None for skipped dialects #6

Merged
merged 2 commits into from
Dec 23, 2019
Merged

Conversation

GjjvdBurg
Copy link
Collaborator

This PR fixes the issue raised in #5

The original code used float('nan') as a placeholder for a dialect that can be skipped. The issue with this is that if the first dialect in the list has a Q-score of nan, then the maximum over scores will return nan as well (see #5). The solution is to filter out these dialects before computing the maximum. We also replace nan by None since it make the code easier to understand.

@GjjvdBurg GjjvdBurg merged commit b68ae8e into master Dec 23, 2019
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