openforcefield / amber-ff-porting

Scratch space for porting amber FFs into SMIRNOFF format
1 stars 3 forks source link

Don't add redundant dihedral terms when they are seen multiple times in one structure #14

Closed j-wags closed 4 years ago

j-wags commented 4 years ago

This PR fixes a bug in ConvertParameters.py caused by seeing the exact same dihedral term multiple times in one structure, but not deduplicating it.

It also adds some debugging code (total proper/improper counts) that may be useful in debugging torsion energies in the future.

@dscerutti -- If these changes look good to you, please go ahead and unilaterally merge.