Commit f8e53db9 by peastman

Fixed error on files with only one chain

parent ea4bb1c8
......@@ -150,9 +150,6 @@ def displayStartPage():
def displayDeleteChainsPage():
uiserver.setCallback(deleteChainsPageCallback)
numChains = len(list(fixer.topology.chains()))
if numChains < 2:
displayAddResiduesPage()
return
table = ""
for i, chain in enumerate(fixer.topology.chains()):
residues = list(r.name for r in chain.residues())
......
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