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
e1c200ba
Commit
e1c200ba
authored
Jul 25, 2018
by
Sam Delmerico
Browse files
fix NameError in getAtomIndexByName
parent
e72a4e8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
e1c200ba
...
@@ -601,7 +601,7 @@ class ForceField(object):
...
@@ -601,7 +601,7 @@ class ForceField(object):
# Provide a helpful error message if atom name not found.
# Provide a helpful error message if atom name not found.
msg
=
"Atom name '%s' not found in residue template '%s'.
\n
"
%
(
atom_name
,
self
.
name
)
msg
=
"Atom name '%s' not found in residue template '%s'.
\n
"
%
(
atom_name
,
self
.
name
)
msg
+=
"Possible atom names are: %s"
%
str
(
atomIndices
.
keys
(
))
msg
+=
"Possible atom names are: %s"
%
str
(
list
(
map
(
lambda
x
:
x
.
name
,
self
.
atoms
)
))
raise
ValueError
(
msg
)
raise
ValueError
(
msg
)
def
addBond
(
self
,
atom1
,
atom2
):
def
addBond
(
self
,
atom1
,
atom2
):
...
...
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