"...src/ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "54fa65ed0d443449b45a80bcddaba4894ffd9c41"
Commit 59899650 authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Grumble grumble

parent b5330c31
...@@ -70,24 +70,18 @@ class Topology(object): ...@@ -70,24 +70,18 @@ class Topology(object):
def getNumAtoms(self): def getNumAtoms(self):
"""Return the number of atoms in the Topology. """Return the number of atoms in the Topology.
Returns: the number of atoms in the Topology
""" """
natom = sum(1 for a in self.atoms()) natom = self.__numAtoms
return natom return natom
def getNumResidues(self): def getNumResidues(self):
"""Return the number of residues in the Topology. """Return the number of residues in the Topology.
Returns: the number of residues in the Topology
""" """
nres = sum(1 for r in self.residues()) nres = self.__numResidues
return nres return nres
def getNumChains(self): def getNumChains(self):
"""Return the number of chains in the Topology. """Return the number of chains in the Topology.
Returns: the number of chains in the Topology
""" """
nchain = len(self._chains) nchain = len(self._chains)
return nchain return nchain
......
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