-
Notifications
You must be signed in to change notification settings - Fork 661
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
gyration_moments method / allow shape parameters to yield per residue quantities #3905
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #3905 +/- ##
========================================
Coverage 93.56% 93.56%
========================================
Files 191 191
Lines 25065 25075 +10
Branches 4042 4049 +7
========================================
+ Hits 23452 23462 +10
Misses 1093 1093
Partials 520 520
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments and queries. :)
@jaclark5 would you be able to fix conflicts / trigger CI and we can go from there? Might also be good to have another pair of eyes @MDAnalysis/coredevs? |
@hmacdope These errors occur from the new Bibtex citation style. This would be resolved with the following changes:
Recall that these changes were added so that the tests would pass in my other PR #3842. So as soon as those are merged, I'll update this PR with the develop branch ;) |
@hmacdope I'm now getting an error in the tests from MDAnalysis/coordinate/XTC.py |
@jaclark5 are you getting this locally? If you so you might need to pip install MDAnalysis again. |
I am getting it locally. Good point, thanks. Edit: That worked |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good just a few little things :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @jaclark5, thanks for another great contribution. @MDAnalysis/coredevs could I get a second review here?
8a46df5
to
3899bdd
Compare
@MDAnalysis/coredevs still looking for a second review here. :) |
Bump on this @MDAnalysis/coredevs? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and code consolidation. I had a quick look through and mainly noticed doc things.
Did we have tests for the case where the methods actually worked as expected and do these tests still produce the same values?
@@ -1800,32 +1889,17 @@ def asphericity(group, wrap=False, unwrap=None, compound='group'): | |||
.. versionchanged:: 2.1.0 | |||
Renamed `pbc` kwarg to `wrap`. `pbc` is still accepted but | |||
is deprecated and will be removed in version 3.0. | |||
.. versionchanged:: 2.5.0 | |||
Added use of gyration_moments for per residue quantities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this important for the user to know how the quantities are computed? I'd assume the more important message is what you have in the CHANGELOG: since 2.5.0 you can calculate asphericity for any compound
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I was going for with "for per residue quantities" but hopeful the change is more clear.
I kept the same testing structure that existed, some results stayed the same and others changed. For a calculation with the entire atom group, the result stayed the same (line 1098, 1120 in the test file.). In the tests where other |
sorry, I currently only have very limited time and won't be able to review soon |
actually... that should be quick |
Brilliant! two reviews. I will merge now. |
… per residue quantities
Fixes #3002
Fixes #3904
Changes made in this Pull Request:
PR Checklist