Adds unwrap keyword to shape_parameter#2296
Closed
NinadBhat wants to merge 43 commits intoMDAnalysis:developfrom
NinadBhat:shape_parameter
Closed
Adds unwrap keyword to shape_parameter#2296NinadBhat wants to merge 43 commits intoMDAnalysis:developfrom NinadBhat:shape_parameter
NinadBhat wants to merge 43 commits intoMDAnalysis:developfrom
NinadBhat:shape_parameter
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2296 +/- ##
==========================================
+ Coverage 89.7% 89.7% +<.01%
==========================================
Files 173 173
Lines 21499 21505 +6
Branches 2801 2803 +2
==========================================
+ Hits 19286 19292 +6
Misses 1616 1616
Partials 597 597
Continue to review full report at Codecov.
|
Member
|
@NinadBhat only the linter complains https://travis-ci.com/MDAnalysis/mdanalysis/jobs/215053492 Once you fix this then all tests pass and that might help with getting it reviewed faster. P.S.: Run the linter locally when fixing these kind of minor issues: |
| assert_almost_equal(ag.center_of_geometry(unwrap=True, compound='residues'), ref_Unwrap_residues['COG'], self.prec) | ||
| assert_almost_equal(ag.center_of_mass(unwrap=True, compound='residues'), ref_Unwrap_residues['COM'], self.prec) | ||
| assert_almost_equal(ag.moment_of_inertia(unwrap=True, compound='residues'), ref_Unwrap_residues['MOI'], self.prec) | ||
| assert_almost_equal(ag.asphericity(unwrap=True, compound='residues'), ref_Unwrap_residues['Asph'], self.prec) |
richardjgowers
requested changes
Jul 24, 2019
|
|
||
| com = group.center_of_mass(pbc=pbc, unwrap=unwrap, compound=compound) | ||
| if compound is not 'group': | ||
| com = (com * group.masses[:, None]).sum(axis=0) / group.masses.sum() |
Member
There was a problem hiding this comment.
needs tests for compound != group
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2292
Changes made in this Pull Request:
PR Checklist