Skip to content
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

fix: update dihedrals, make pairs unique #383

Merged
merged 4 commits into from
Feb 27, 2024
Merged

Conversation

KRiedmiller
Copy link
Collaborator

Fixes #376

There were two problems.

Inner dihedrals in MultipleDihedrals were all written in the same dict (new_dihedrals), for all multidihedrals. Did not matter though, as this dict was not fed back into the multidihedrals.

Second, multiple dihedrals had the same start and end, with different middle atoms. The start and end were used for pairs, leading to duplicate definitions of the same pair. On top, the pair was updated, so it got updated a second time, leading to a miss match of dict keys and content in the pairs.

https://github.com/hits-mbm-dev/kimmdy/blob/9f9b162c40aaf91f691b3963578030592f0ec0a5/src/kimmdy/topology/topology.py#L529-L567

@KRiedmiller KRiedmiller added the bug Something isn't working label Feb 23, 2024
@KRiedmiller KRiedmiller self-assigned this Feb 23, 2024
@KRiedmiller KRiedmiller merged commit 9283e68 into main Feb 27, 2024
1 check passed
@KRiedmiller KRiedmiller deleted the topol/fix-reindex-atoms branch February 27, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

topology: bonds in pairs
2 participants