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

proposed fix for nan error in vine #21

Closed
cliff-bohm opened this issue Feb 20, 2019 · 1 comment · Fixed by #22
Closed

proposed fix for nan error in vine #21

cliff-bohm opened this issue Feb 20, 2019 · 1 comment · Fixed by #22

Comments

@cliff-bohm
Copy link
Contributor

in visual_inspector/figure_base/load_data.py

the line:

cind = (fitness - minfit)/(maxfit - minfit) * gs.numBins

will result in a nan error when maxfit == minfit

I suggest:

if maxfit == minfit:
    cind = 0.0
else:    
    cind = (fitness - minfit)/(maxfit - minfit) * gs.numBins
@ruiwang2uber
Copy link
Collaborator

Good point. Would you like to put it in a pull request? I will be happy to merge it

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 a pull request may close this issue.

2 participants