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 normalizaiton of bond and angle distributions #41

Merged
merged 2 commits into from
May 27, 2022

Conversation

chrisjonesBSU
Copy link
Member

It looks like the normalization parameter in both bond and angle distribution functions wasn't doing anything. The actual normalization is performed in plotting.get_histogram, which both of these functions use, but the normalization parameter was never passed along. This PR fixes that, and adds 2 unit tests that call the bond and angle distribution functions (the normalization was already tested directly by calling get_histogram)

@codecov
Copy link

codecov bot commented May 25, 2022

Codecov Report

Merging #41 (ab35f49) into master (c0e67e1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #41   +/-   ##
=======================================
  Coverage   99.11%   99.11%           
=======================================
  Files           7        7           
  Lines         340      340           
=======================================
  Hits          337      337           
  Misses          3        3           
Impacted Files Coverage Δ
cmeutils/structure.py 100.00% <ø> (ø)

Copy link
Member

@jennyfothergill jennyfothergill left a comment

Choose a reason for hiding this comment

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

LGTM

@chrisjonesBSU chrisjonesBSU merged commit e774cbb into cmelab:master May 27, 2022
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.

2 participants