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
79261f4c
"vscode:/vscode.git/clone" did not exist on "a4b49551a93eb72c7bb19f62f69ff55e253f62b1"
Commit
79261f4c
authored
Apr 28, 2017
by
Rafal P. Wiewiora
Browse files
add missing types to _matchAmberImproper
parent
50c07938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+7
-4
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
79261f4c
...
@@ -1736,7 +1736,10 @@ def _createResidueTemplate(residue):
...
@@ -1736,7 +1736,10 @@ def _createResidueTemplate(residue):
template
.
addExternalBondByName
(
atom2
.
name
)
template
.
addExternalBondByName
(
atom2
.
name
)
return
template
return
template
def
_matchAmberImproper
(
torsion
,
data
,
hasWildcard
):
def
_matchAmberImproper
(
types
,
torsion
,
data
,
hasWildcard
):
t2
=
types
[
0
]
t3
=
types
[
1
]
t4
=
types
[
2
]
# topology atom indexes
# topology atom indexes
a2
=
torsion
[
t2
[
1
]]
a2
=
torsion
[
t2
[
1
]]
a3
=
torsion
[
t3
[
1
]]
a3
=
torsion
[
t3
[
1
]]
...
@@ -2051,7 +2054,7 @@ class PeriodicTorsionGenerator(object):
...
@@ -2051,7 +2054,7 @@ class PeriodicTorsionGenerator(object):
match
=
(
a1
,
a2
,
torsion
[
0
],
torsion
[
t4
[
1
]],
tordef
)
match
=
(
a1
,
a2
,
torsion
[
0
],
torsion
[
t4
[
1
]],
tordef
)
break
break
elif
tordef
.
ordering
==
'amber'
:
elif
tordef
.
ordering
==
'amber'
:
match
=
_matchAmberImproper
(
torsion
,
data
,
hasWildcard
)
match
=
_matchAmberImproper
(
(
t2
,
t3
,
t4
),
torsion
,
data
,
hasWildcard
)
break
break
if
match
is
not
None
:
if
match
is
not
None
:
(
a1
,
a2
,
a3
,
a4
,
tordef
)
=
match
(
a1
,
a2
,
a3
,
a4
,
tordef
)
=
match
...
@@ -2171,7 +2174,7 @@ class RBTorsionGenerator(object):
...
@@ -2171,7 +2174,7 @@ class RBTorsionGenerator(object):
match
=
(
torsion
[
0
],
torsion
[
t2
[
1
]],
torsion
[
t3
[
1
]],
torsion
[
t4
[
1
]],
tordef
)
match
=
(
torsion
[
0
],
torsion
[
t2
[
1
]],
torsion
[
t3
[
1
]],
torsion
[
t4
[
1
]],
tordef
)
break
break
elif
tordef
.
ordering
==
'amber'
:
elif
tordef
.
ordering
==
'amber'
:
match
=
_matchAmberImproper
(
torsion
,
data
,
hasWildcard
)
match
=
_matchAmberImproper
(
(
t2
,
t3
,
t4
),
torsion
,
data
,
hasWildcard
)
break
break
if
match
is
not
None
:
if
match
is
not
None
:
(
a1
,
a2
,
a3
,
a4
,
tordef
)
=
match
(
a1
,
a2
,
a3
,
a4
,
tordef
)
=
match
...
@@ -2740,7 +2743,7 @@ class CustomTorsionGenerator(object):
...
@@ -2740,7 +2743,7 @@ class CustomTorsionGenerator(object):
match
=
(
torsion
[
0
],
torsion
[
t2
[
1
]],
torsion
[
t3
[
1
]],
torsion
[
t4
[
1
]],
tordef
)
match
=
(
torsion
[
0
],
torsion
[
t2
[
1
]],
torsion
[
t3
[
1
]],
torsion
[
t4
[
1
]],
tordef
)
break
break
elif
tordef
.
ordering
==
'amber'
:
elif
tordef
.
ordering
==
'amber'
:
match
=
_matchAmberImproper
(
torsion
,
data
,
hasWildcard
)
match
=
_matchAmberImproper
(
(
t2
,
t3
,
t4
),
torsion
,
data
,
hasWildcard
)
break
break
if
match
is
not
None
:
if
match
is
not
None
:
(
a1
,
a2
,
a3
,
a4
,
tordef
)
=
match
(
a1
,
a2
,
a3
,
a4
,
tordef
)
=
match
...
...
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