Closed JMorado closed 9 months ago
A PR would be great. You can probably simplify all(p in torsion.attrib for p in ('p1', 'p2', 'p3', 'p4'))
to just 'p1' in torsion.attrib
. Checking just one is enough to tell us which labels to use.
Thanks for catching this!
Hi,
When removing all bonded interactions between atoms within the ML region, it seems that the case involving CMAPs is not considered. This situation arises, for example, when using the Amber ff19SB force field. If I execute the following script:
diala_solvated.zip
I get the the following
KeyError
:In principle, resolving this issue should involve changing from:
https://github.com/openmm/openmm-ml/blob/bc414b4e80d9ec0bbae3c356eeb66d5a82a19352/openmmml/mlpotential.py#L388-L392
to:
I am happy to do a PR with this fix, but I am wondering if there are any other cases to consider.
Many thanks.