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
e040c5d0
"vscode:/vscode.git/clone" did not exist on "88be5f965f2d84182fedca037cfde7615c8d5b83"
Commit
e040c5d0
authored
Jun 04, 2015
by
Jason Swails
Browse files
atoms and residues are functions, not descriptors.
parent
8914ab9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/topology.py
wrappers/python/simtk/openmm/app/topology.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/topology.py
View file @
e040c5d0
...
...
@@ -61,8 +61,8 @@ class Topology(object):
def
__repr__
(
self
):
nchains
=
len
(
self
.
_chains
)
nres
=
sum
(
1
for
r
in
self
.
residues
)
natom
=
sum
(
1
for
a
in
self
.
atoms
)
nres
=
sum
(
1
for
r
in
self
.
residues
()
)
natom
=
sum
(
1
for
a
in
self
.
atoms
()
)
nbond
=
len
(
self
.
_bonds
)
return
'<%s; %d chains, %d residues, %d atoms, %d bonds>'
%
(
type
(
self
).
__name__
,
nchains
,
nres
,
natom
,
nbond
)
...
...
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