Commit eed66441 by Chodera

Python 3 compatibility; fix issue with chain_numbers

parent 9d054482
......@@ -775,9 +775,8 @@ class PDBFixer(object):
deleteAtoms = [] # list of atoms to delete
# Find atoms that should be deleted.
for residue, replaceWith in residue_map.iteritems():
if residue.chain.index != chain_number:
continue # Only modify specified chain
for residue in residue_map.keys():
replaceWith = residue_map[residue]
residue.name = replaceWith
template = self.templates[replaceWith]
standardAtoms = set(atom.name for atom in template.topology.atoms())
......
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