"platforms/vscode:/vscode.git/clone" did not exist on "15899649c0ea98446ea7efda6a65823e5986ef3c"
Commit e1c200ba authored by Sam Delmerico's avatar Sam Delmerico
Browse files

fix NameError in getAtomIndexByName

parent e72a4e8c
......@@ -601,7 +601,7 @@ class ForceField(object):
# Provide a helpful error message if atom name not found.
msg = "Atom name '%s' not found in residue template '%s'.\n" % (atom_name, self.name)
msg += "Possible atom names are: %s" % str(atomIndices.keys())
msg += "Possible atom names are: %s" % str(list(map(lambda x: x.name, self.atoms)))
raise ValueError(msg)
def addBond(self, atom1, atom2):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment