Commit 943fda10 by peastman Committed by GitHub

Merge pull request #156 from peastman/error

Fixed error on files with only one chain
parents ea4bb1c8 f8e53db9
......@@ -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