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
61ea4d43
"vscode:/vscode.git/clone" did not exist on "0f8da117516f8c38bed4c90173ad8698e82f7501"
Commit
61ea4d43
authored
Aug 29, 2013
by
peastman
Browse files
Improved error checking in ForceField
parent
e59e6f93
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 @
61ea4d43
...
...
@@ -590,8 +590,8 @@ def _findMatchErrors(forcefield, res):
# Return an appropriate error message.
if
numBestMatchAtoms
==
numResidueAtoms
:
chain
Length
=
len
(
list
(
res
.
chain
.
residues
())
)
if
chain
Length
>
1
and
(
res
.
index
==
0
or
res
.
index
==
chain
Length
-
1
):
chain
Residues
=
list
(
res
.
chain
.
residues
())
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.'
%
bestMatchName
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