Skip to content

Fix bug with left_bin_edge in histogram#851

Merged
dwhswenson merged 3 commits into
openpathsampling:masterfrom
sroet:fix_histogram_bugs
Aug 14, 2019
Merged

Fix bug with left_bin_edge in histogram#851
dwhswenson merged 3 commits into
openpathsampling:masterfrom
sroet:fix_histogram_bugs

Conversation

@sroet

@sroet sroet commented Aug 13, 2019

Copy link
Copy Markdown
Member

When trying to do TIS analysis I ran into a bug where the min_bin location was either in bin_space or in cv_space which led to a mismatch between bins and counters.

This became apparent by reverse_cumulative returning 0 instead of a LookUpFunction.

The mismatch has been fixed and (reverse_)cumulative now gives a UserWarning if the total sum is 0 and now returns a LookUpFunction with only zeros.

@dwhswenson dwhswenson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. I re-ran the Travis build a couple of times in the hopes that (supposedly now-working) coveralls would confirm that this does not reduce test coverage. Coveralls doesn't seem to be fully working, though.

From looking at the code, I see no way this could be a coverage decrease, and it is most likely a small coverage increase. Will merge.

@dwhswenson dwhswenson added the bugfix PRs fixing bugs label Aug 14, 2019
@dwhswenson dwhswenson changed the title Fix histogram bugs Fix bug with left_bin_edge in histogram; (reverse_)cumulative always returns LookupFunction Aug 14, 2019
@dwhswenson dwhswenson changed the title Fix bug with left_bin_edge in histogram; (reverse_)cumulative always returns LookupFunction Fix bug with left_bin_edge in histogram Aug 14, 2019
@dwhswenson dwhswenson merged commit 93d43ef into openpathsampling:master Aug 14, 2019
@sroet sroet deleted the fix_histogram_bugs branch August 22, 2019 09:04
This was referenced Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PRs fixing bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants