Commit b5330c31 authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Simplify Topology.getNumChains()

parent eb2f347a
......@@ -89,7 +89,7 @@ class Topology(object):
Returns: the number of chains in the Topology
"""
nchain = sum(1 for c in self.chains())
nchain = len(self._chains)
return nchain
def addChain(self, id=None):
......
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