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

Patch some bugs in histogram.py #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Patch some bugs in histogram.py #38

wants to merge 2 commits into from

Conversation

sursh
Copy link

@sursh sursh commented Jul 15, 2016

I needed to patch histogram.py for my own needs so here are some manual changes I made. See commit messages for more details.

1) Need integers later, not floats, so force integer division.
2) In the condition, you're implicitly using 'is', which checks to make
sure that True and length%2 are the exact same object, which they're
not. They are, however, equivalent, so let's use '=='
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant