In openmm 7.4, the class _TemplateData has a dictionary attribute atomIndices, which is populated by the function addAtom(), which is also not in previous openmm's.
atomIndices are required to use the function getAtomIndexByName().
This PR allows for compatibility for both omm 7.3 and 7.4, with the 7.4-specific code in the comments for future use.
In openmm 7.4, the class
_TemplateData
has a dictionary attributeatomIndices
, which is populated by the functionaddAtom()
, which is also not in previous openmm's.atomIndices
are required to use the functiongetAtomIndexByName()
.This PR allows for compatibility for both omm 7.3 and 7.4, with the 7.4-specific code in the comments for future use.