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 potential divide_by_zero warning in scale selection #1261

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Sep 7, 2018

maxval may be zero if all data is zero so protect against that. @Dominik-Vogel

We have an example of this in one of the notebooks

@codecov
Copy link

codecov bot commented Sep 7, 2018

Codecov Report

Merging #1261 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1261      +/-   ##
==========================================
+ Coverage   70.66%   70.67%   +<.01%     
==========================================
  Files          74       74              
  Lines        8174     8176       +2     
==========================================
+ Hits         5776     5778       +2     
  Misses       2398     2398

Copy link
Contributor

@Dominik-Vogel Dominik-Vogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

@jenshnielsen jenshnielsen merged commit 4a737aa into microsoft:master Sep 7, 2018
@jenshnielsen jenshnielsen deleted the fix_divide_by_zero branch September 7, 2018 13:04
giulioungaretti pushed a commit that referenced this pull request Sep 7, 2018
Merge: eef1c68 61c7bde
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Merge pull request #1261 from jenshnielsen/fix_divide_by_zero
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.

None yet

2 participants