Closed jmbuhr closed 2 years ago
When changing the topology, I construct pairs by iterating through all dihedrals and taking the first and fourth atom as pairs. As the dihedral list is complete (all possible proper dihedrals should be in the topology), this should include all pairs. For this problem, we could go through all dihedrals and check whether the breakpair is at the position 2 and 3 of the dihedrals to find pairs that we need to remove.
Likely solved from the topology branch merge
https://github.com/hits-mbm-dev/kimmdy/blob/4cde37430db18b4c6e680ec84471efec2725647c/src/kimmdy/changemanager.py#L29-L33