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
0844f4fe
"openmmapi/vscode:/vscode.git/clone" did not exist on "95b8dbd625f58dcbb3e343246cc69df3466672cb"
Commit
0844f4fe
authored
May 04, 2012
by
Peter Eastman
Browse files
Residue indices for atoms were set incorrectly
parent
ff7931dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
...ers/python/simtk/openmm/app/internal/amber_file_parser.py
+2
-1
No files found.
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
View file @
0844f4fe
...
...
@@ -285,9 +285,10 @@ class PrmtopLoader(object):
self
.
residuePointerDict
=
{}
resPointers
=
self
.
_raw_data
[
'RESIDUE_POINTER'
]
firstAtom
=
[
int
(
p
)
-
1
for
p
in
resPointers
]
firstAtom
.
append
(
self
.
getNumAtoms
())
res
=
0
for
i
in
range
(
self
.
getNumAtoms
()):
while
i
<
firstAtom
[
res
]
:
while
firstAtom
[
res
+
1
]
<=
i
:
res
+=
1
self
.
residuePointerDict
[
i
]
=
res
return
self
.
residuePointerDict
[
iAtom
]
...
...
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