-
Notifications
You must be signed in to change notification settings - Fork 668
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
Added zero-based indices for donors and acceptors in HBond Analysis. #833
Conversation
I need to add tests to prove that this works as expected, and try to increase code coverage. |
8. "acceptor_atom" | ||
9. "distance" | ||
10. "angle" | ||
3. "donor_idx_zero" |
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.
I don't like the "zero" in something that will eventually become the primary name. Can we go with donor_index
and acceptor_index
? I know that this is more confusing if you just look at the names but it will be better once we remove donor_idx
and acceptor_idx
.
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.
Okay, will do.
1fbf45d
to
298ff51
Compare
updated docs to reflect change. Added deprecation warning for the 1-based index.
Hi, I made some changes to the docs and added one simple test. Adding testing on real data is something I am working with but as of right now it is very slow. Are there small files to work with where we have some knowledge of what hydrogen bonds exist? Either way, I think this PR is ready for review. |
@@ -26,7 +26,7 @@ | |||
import itertools | |||
import warnings | |||
|
|||
from MDAnalysisTests.datafiles import PDB_helix | |||
from MDAnalysisTests.datafiles import PDB_helix, PSF, DCD |
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.
Are you using PSF, DCD anywhere for the tests?
@samuel3181 , the 0-based indices are almost ready to go in (unless @richardjgowers protests). |
We don't have to look at whole trajectories. Just the first few frames can be sufficient. You can run a similar analysis with e.g. VMD and use that output as baseline truth. I think the original test looks for the i, i+4 protein backbone bonds in a alpha-helix. |
Okay, I'll finish this up tonight with that in mind. I have tests ready to On Fri, May 6, 2016 at 1:53 PM Oliver Beckstein notifications@github.com
|
Changed distance metrics to staticmethods Reworked selections to use implicit OR syntax Used direct bool comparison of Groups
Hbonds fixup
@richardjgowers, do you know why the tests are failing now? |
@jdetle it was just the macos tests, so I'm blaming travis. I've restarted that set of tests |
Can you try again one more time @richardjgowers? Or could you tell me how to restart travis builds myself without pushing a new commit? |
@jdetle so around the top right of the travis webpage below "More options" there's a circular arrow type thingy that lets you restart a build (all jobs) or a single job (depending on where you click the thingy from) |
I'm not sure if he is allowed to do that though. |
ah right yeah, I had to sign in first, good point. |
Any chance @MDAnalysis/coredevs could give me that level of access w/o giving me undue privileges? I think it would make things go smoother. |
@jdetle not entirely sure re: permissions. You should be able to use travis off your fork of MDA (it's free). If you go to the website you can sign in via github and add your repo of MDA so it'll work identically to ours |
Random Travis failures are rare. Besides you can force a full rebuild by changing the SHA of the last commit. |
Fixes #807, #838
Changes made in this Pull Request:
(Added versionchanged:: 0.15.0 4 times in different places saying essentially the same thing, I figured this was probably overkill but you could tell me where to delete extraneous stuff rather than where to add)
PR Checklist