Fix mismatch in groupselections for RMSD between target and reference#3195
Fix mismatch in groupselections for RMSD between target and reference#31951ut wants to merge 3 commits intoMDAnalysis:developfrom
Conversation
package/MDAnalysis/analysis/rms.py
Outdated
| 'reference': self.reference.universe.select_atoms(*s['reference']), | ||
| 'mobile': self.atomgroup.universe.select_atoms(*s['mobile']), | ||
| 'reference': self.reference.select_atoms(*s['reference']), | ||
| 'mobile': self.atomgroup.select_atoms(*s['mobile']), |
There was a problem hiding this comment.
I reviewed the codebase and thought It's not essential and wrong to call .universe, so I just removed the character .universe.
There was a problem hiding this comment.
Going by the docstring, this seems to have been an intentional design decision in order to provide an atom selection that goes beyond the passed atomgroups.
I'll let someone with more familiarity with that feature speak up though.
There was a problem hiding this comment.
Yes -- this is handy, for example, if you want to align on C-alphas and then calculate the RMSD of backbone atoms.
Codecov Report
@@ Coverage Diff @@
## develop #3195 +/- ##
===========================================
- Coverage 92.73% 92.72% -0.01%
===========================================
Files 168 168
Lines 22683 22687 +4
Branches 3213 3216 +3
===========================================
+ Hits 21035 21037 +2
- Misses 1600 1602 +2
Partials 48 48
Continue to review full report at Codecov.
|
|
Close this pull request as I had already opened PR #3188. |
Fixes #2797
Changes made in this Pull Request:
PR Checklist