Commit c7d32e9c authored by Peter Eastman's avatar Peter Eastman
Browse files

Handle alternate locations in PDB files correctly

parent 34bd3ee9
......@@ -58,7 +58,7 @@ class PDBFile(object):
atomReplacements = PDBFile._atomNameReplacements[resName]
else:
atomReplacements = {}
for atom in residue.iter_atoms():
for atom in residue.atoms:
atomName = atom.get_name()
if atomName in atomReplacements:
atomName = atomReplacements[atomName]
......
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