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
681f601b
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "ce8d6a2d9e87e2c7d26b61c43fe68b0458943d53"
Commit
681f601b
authored
Apr 16, 2013
by
Peter Eastman
Browse files
Fixed bug that caused some TOP files to fail
parent
0307a0db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
681f601b
...
@@ -576,7 +576,7 @@ class GromacsTopFile(object):
...
@@ -576,7 +576,7 @@ class GromacsTopFile(object):
dihedralType
=
fields
[
4
]
dihedralType
=
fields
[
4
]
reversedTypes
=
types
[::
-
1
]
+
(
dihedralType
,)
reversedTypes
=
types
[::
-
1
]
+
(
dihedralType
,)
types
=
types
+
(
dihedralType
,)
types
=
types
+
(
dihedralType
,)
if
(
dihedralType
in
(
'1'
,
'2'
)
and
len
(
fields
)
>
7
)
or
(
dihedralType
==
'3'
and
len
(
fields
)
>
10
):
if
(
dihedralType
in
(
'1'
,
'2'
,
'4'
,
'9'
)
and
len
(
fields
)
>
7
)
or
(
dihedralType
==
'3'
and
len
(
fields
)
>
10
):
paramsList
=
[
fields
]
paramsList
=
[
fields
]
else
:
else
:
# Look for a matching dihedral type.
# Look for a matching dihedral type.
...
...
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