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
"platforms/vscode:/vscode.git/clone" did not exist on "15899649c0ea98446ea7efda6a65823e5986ef3c"
Commit
e1c200ba
authored
Jul 25, 2018
by
Sam Delmerico
Browse files
fix NameError in getAtomIndexByName
parent
e72a4e8c
Changes
1
Hide 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):
# 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
+=
"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
)
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