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
f3ce6720
Commit
f3ce6720
authored
Nov 09, 2016
by
peastman
Browse files
Fixed failing test case
parent
ff55a3a0
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/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
f3ce6720
...
@@ -1006,7 +1006,7 @@ class Modeller(object):
...
@@ -1006,7 +1006,7 @@ class Modeller(object):
signature
=
_createResidueSignature
([
atom
.
element
for
atom
in
residue
.
atoms
()])
signature
=
_createResidueSignature
([
atom
.
element
for
atom
in
residue
.
atoms
()])
if
signature
in
forcefield
.
_templateSignatures
:
if
signature
in
forcefield
.
_templateSignatures
:
for
t
in
forcefield
.
_templateSignatures
[
signature
]:
for
t
in
forcefield
.
_templateSignatures
[
signature
]:
if
_matchResidue
(
residue
,
t
,
bondedToAtom
)
is
not
None
:
if
_matchResidue
(
residue
,
t
,
bondedToAtom
,
False
)
is
not
None
:
matchFound
=
True
matchFound
=
True
if
matchFound
:
if
matchFound
:
# Just copy the residue over.
# Just copy the residue over.
...
@@ -1025,7 +1025,7 @@ class Modeller(object):
...
@@ -1025,7 +1025,7 @@ class Modeller(object):
if
signature
in
forcefield
.
_templateSignatures
:
if
signature
in
forcefield
.
_templateSignatures
:
for
t
in
forcefield
.
_templateSignatures
[
signature
]:
for
t
in
forcefield
.
_templateSignatures
[
signature
]:
if
t
in
templatesNoEP
:
if
t
in
templatesNoEP
:
matches
=
_matchResidue
(
residueNoEP
,
templatesNoEP
[
t
],
bondedToAtomNoEP
)
matches
=
_matchResidue
(
residueNoEP
,
templatesNoEP
[
t
],
bondedToAtomNoEP
,
False
)
if
matches
is
not
None
:
if
matches
is
not
None
:
template
=
t
;
template
=
t
;
# Record the corresponding atoms.
# Record the corresponding atoms.
...
...
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