Skip to content

fixing forcefield_generators to be compatible with openmm 7.4#288

Merged
hannahbrucemacdonald merged 6 commits into
masterfrom
atomIndices
Aug 21, 2019
Merged

fixing forcefield_generators to be compatible with openmm 7.4#288
hannahbrucemacdonald merged 6 commits into
masterfrom
atomIndices

Conversation

@hannahbrucemacdonald

Copy link
Copy Markdown
Contributor

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.

…forcefields:_TemplateData has attribute atomIndices

@jchodera jchodera left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seem to pass locally! I'm just trying to see if I can get the travis tests to produce something useful.

@hannahbrucemacdonald : Feel free to merge this if this works for you locally too! We can always fix the travis tests later on if this didn't do the trick.

@hannahbrucemacdonald

Copy link
Copy Markdown
Contributor Author

It seems like it's import errors, I'll try sort it today and then merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants