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
f5f2773b
Unverified
Commit
f5f2773b
authored
Aug 04, 2021
by
Peter Eastman
Committed by
GitHub
Aug 04, 2021
Browse files
Fixed error adding exclusions from Gromacs top file (#3198)
parent
473069f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
wrappers/python/openmm/app/gromacstopfile.py
wrappers/python/openmm/app/gromacstopfile.py
+1
-2
No files found.
wrappers/python/openmm/app/gromacstopfile.py
View file @
f5f2773b
...
@@ -997,8 +997,7 @@ class GromacsTopFile(object):
...
@@ -997,8 +997,7 @@ class GromacsTopFile(object):
for
fields
in
moleculeType
.
exclusions
:
for
fields
in
moleculeType
.
exclusions
:
atoms
=
[
int
(
x
)
-
1
for
x
in
fields
]
atoms
=
[
int
(
x
)
-
1
for
x
in
fields
]
for
atom
in
atoms
[
1
:]:
for
atom
in
atoms
[
1
:]:
if
atom
>
atoms
[
0
]:
exclusions
.
append
((
baseAtomIndex
+
atoms
[
0
],
baseAtomIndex
+
atom
))
exclusions
.
append
((
baseAtomIndex
+
atoms
[
0
],
baseAtomIndex
+
atom
))
# Record virtual sites
# Record virtual sites
...
...
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