Resolve wrongly merging bond/angle/dihedral types#4003
Resolve wrongly merging bond/angle/dihedral types#4003hmacdope merged 23 commits intoMDAnalysis:developfrom
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #4003 +/- ##
========================================
Coverage 93.60% 93.60%
========================================
Files 193 193
Lines 25146 25147 +1
Branches 4055 4056 +1
========================================
+ Hits 23538 23539 +1
Misses 1092 1092
Partials 516 516
☔ View full report in Codecov by Sentry. |
|
I could use some help understanding why the test I wrote isn't working. Basically I import a LAMMPS data file with 22 bond types.
However, it seems that the Edit: I figured it out, it appears that the class is reinitiated every time the bond types are called. Probably because |
|
I think There is also the related issue of the current system of bonds and even the solution in #3777 only retaining one bond with identical indices (eg only one of 1-2 or 2-1 can exist). This is documented in #3818 and I have been meaning to get on with it as it is definately an issue. I think the semi-conclusion we came to last time was that this is a topology parser issue, IE the parser should sort out the bonds so that there are no duplicates. Sorry for the info dump but thought I would help out with some context. |
|
I'm not sure it will since that PR doesn't touch topologyobjects.py. The issue is that to or just initiate topDict in |
hmacdope
left a comment
There was a problem hiding this comment.
I think this seems reasonable approach for now, I guess you found that the original setup is error prone and likely still is, but this is a step in the right direction
|
Hey @hmacdope, I was wrong, the issue isn't that the |
Linter Bot Results:Hi @jaclark5! Thanks for making this PR. We linted your code and found the following: There are currently no issues detected! 🎉 |
hmacdope
left a comment
There was a problem hiding this comment.
Two small comments but other than that I am happy.
|
@MDAnalysis/coredevs any chance anyone can take a quick peek here also? |
@hmacdope Not anymore. I had another test that I removed that also removed that dependency. This other test would call I think this is still something to think about, since it would slow MDAnalysis down to reinitialize the bonds topdict every time it's called. Should I make it another issue or would you want to incorporate that into #3777 ? |
@jaclark5 raise an issue, I think we can just move forward with this as it is :) |
|
@MDAnalysis/coredevs I would appreciate another review :) |
|
@MDAnalysis/coredevs can I get another set of eyes here? If no action in a week I will just go ahead. Sorry we have been a bit slow @jaclark5. |
|
Cycling CI for aarch. |
|
@IAlibay can I safely ignore CI failure here? |
Ahh sorry for the delay, I thought I had seen a notification come through 😅 Yeahhh ignore it here, it's not relatetd to this code. It's because of the 1.1 release of contourpy from ~ 3 days ago and the fact that we annoyingly still support 32bit... I'll open a PR. |
Fixes #4001
Changes made in this Pull Request:
PR Checklist