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
d74e4789
"csrc/vscode:/vscode.git/clone" did not exist on "50e2de8d310da82551716864ae21d4010197fc48"
Commit
d74e4789
authored
Oct 26, 2015
by
John Chodera (MSKCC)
Browse files
Fix typo in getNumAtoms() and getNumResidues() implementation
parent
59899650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wrappers/python/simtk/openmm/app/topology.py
wrappers/python/simtk/openmm/app/topology.py
+4
-4
No files found.
wrappers/python/simtk/openmm/app/topology.py
View file @
d74e4789
...
...
@@ -62,8 +62,8 @@ class Topology(object):
def
__repr__
(
self
):
nchains
=
len
(
self
.
_chains
)
nres
=
s
um
(
1
for
r
in
self
.
r
esidues
())
natom
=
s
um
(
1
for
a
in
self
.
a
toms
())
nres
=
s
elf
.
_numR
esidues
natom
=
s
elf
.
_numA
toms
nbond
=
len
(
self
.
_bonds
)
return
'<%s; %d chains, %d residues, %d atoms, %d bonds>'
%
(
type
(
self
).
__name__
,
nchains
,
nres
,
natom
,
nbond
)
...
...
@@ -71,13 +71,13 @@ class Topology(object):
def
getNumAtoms
(
self
):
"""Return the number of atoms in the Topology.
"""
natom
=
self
.
_
_
numAtoms
natom
=
self
.
_numAtoms
return
natom
def
getNumResidues
(
self
):
"""Return the number of residues in the Topology.
"""
nres
=
self
.
_
_
numResidues
nres
=
self
.
_numResidues
return
nres
def
getNumChains
(
self
):
...
...
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