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

Check for empty strings with safe_float #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Check for empty strings with safe_float #56

wants to merge 1 commit into from

Conversation

dioph
Copy link
Owner

@dioph dioph commented Jun 9, 2020

This PR fixes #50 by introducing the function safe_float, which converts strings to float values while checking for infinities and catching ValueError exceptions (which are converted to nan). Also, in each submission method, a check for nans will not accept empty parameters as input, instead displaying a message on the status bar (as was already the case for add_new_line_model).

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.

Program crashes when submitting empty strings
1 participant