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
4f86aac9
Commit
4f86aac9
authored
Jan 19, 2016
by
John Chodera (MSKCC)
Browse files
Fix import
parent
ce70fa17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wrappers/python/tests/TestForceField.py
wrappers/python/tests/TestForceField.py
+2
-1
No files found.
wrappers/python/tests/TestForceField.py
View file @
4f86aac9
...
...
@@ -261,7 +261,8 @@ class TestForceField(unittest.TestCase):
from
uuid
import
uuid4
template_name
=
uuid4
()
# Create residue template.
template
=
ForceField
.
_createResidueTemplate
(
residue
)
# use helper function
from
simtk.openmm.app.forcefield
import
_createResidueTemplate
template
=
_createResidueTemplate
(
residue
)
# use helper function
template
.
name
=
template_name
# replace template name
for
(
template_atom
,
residue_atom
)
in
zip
(
template
.
atoms
,
residue
.
atoms
()):
template_atom
.
type
=
'XXX'
# replace atom type
...
...
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