Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Minor code cleanup #12826

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

Merged
merged 1 commit into from
Nov 23, 2018
Merged

Minor code cleanup #12826

merged 1 commit into from
Nov 23, 2018

Conversation

timhoffm
Copy link
Member

PR Summary

mask.any() is more clear and a bit faster than len(shade[mask]) > 0.

@timhoffm timhoffm added this to the v3.1 milestone Nov 18, 2018
@WeatherGod
Copy link
Member

is this code path not hit at all in the unit tests? I find that hard to believe, or am I misreading "codecov/patch"?

@timhoffm
Copy link
Member Author

Well, https://codecov.io/codecov/v4/raw/2018-11-18/309FD91B0F9DD2872E7030148BF16D42/c5bbac224b6ba890e8d046bd1d523bf613cd3535/15057aa8-be14-4351-95ab-a4afdb804883.txt says

<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="1776" number="1765"/>

Might be that this is due to condition coverage and rounding. But I really don't know.

@jklymak jklymak merged commit d4d8c08 into matplotlib:master Nov 23, 2018
@timhoffm timhoffm deleted the minor-cleanup branch November 24, 2018 13:47
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.

4 participants