Unverified Commit f6cbe7d6 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #2134 from stnma7e/master

minor fix for a NameError in getAtomIndexByName
parents fdb501e3 e1c200ba
...@@ -601,7 +601,7 @@ class ForceField(object): ...@@ -601,7 +601,7 @@ class ForceField(object):
# Provide a helpful error message if atom name not found. # 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 = "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) raise ValueError(msg)
def addBond(self, atom1, atom2): 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