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
e76fe9c2
Commit
e76fe9c2
authored
Aug 29, 2013
by
peastman
Browse files
Merge pull request #125 from peastman/master
Improved error checking in ForceField
parents
9df60d18
61ea4d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
e76fe9c2
...
@@ -590,8 +590,8 @@ def _findMatchErrors(forcefield, res):
...
@@ -590,8 +590,8 @@ def _findMatchErrors(forcefield, res):
# Return an appropriate error message.
# Return an appropriate error message.
if
numBestMatchAtoms
==
numResidueAtoms
:
if
numBestMatchAtoms
==
numResidueAtoms
:
chain
Length
=
len
(
list
(
res
.
chain
.
residues
())
)
chain
Residues
=
list
(
res
.
chain
.
residues
())
if
chain
Length
>
1
and
(
res
.
index
==
0
or
res
.
index
==
chain
Length
-
1
):
if
len
(
chain
Residues
)
>
1
and
(
res
==
chainResidues
[
0
]
or
res
==
chain
Residues
[
-
1
]
):
return
'The set of atoms matches %s, but the bonds are different. Perhaps the chain is missing a terminal group?'
%
bestMatchName
return
'The set of atoms matches %s, but the bonds are different. Perhaps the chain is missing a terminal group?'
%
bestMatchName
return
'The set of atoms matches %s, but the bonds are different.'
%
bestMatchName
return
'The set of atoms matches %s, but the bonds are different.'
%
bestMatchName
if
bestMatchName
is
not
None
:
if
bestMatchName
is
not
None
:
...
...
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