Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
59899650
"...src/ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "54fa65ed0d443449b45a80bcddaba4894ffd9c41"
Commit
59899650
authored
Oct 26, 2015
by
John Chodera (MSKCC)
Browse files
Grumble grumble
parent
b5330c31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
wrappers/python/simtk/openmm/app/topology.py
wrappers/python/simtk/openmm/app/topology.py
+2
-8
No files found.
wrappers/python/simtk/openmm/app/topology.py
View file @
59899650
...
@@ -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
=
s
um
(
1
for
a
in
self
.
a
toms
())
natom
=
s
elf
.
__numA
toms
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
=
s
um
(
1
for
r
in
self
.
r
esidues
())
nres
=
s
elf
.
__numR
esidues
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment