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
25c22045
Commit
25c22045
authored
Jul 12, 2013
by
Lee-Ping Wang
Browse files
Removed an if statement that was causing addHydrogens() to fail for systems containing OH groups.
parent
604a8538
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+3
-4
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
25c22045
...
...
@@ -734,7 +734,6 @@ class Modeller(object):
else
:
delta
=
Vec3
(
random
.
random
(),
random
.
random
(),
random
.
random
())
*
nanometer
delta
*=
0.1
*
nanometer
/
norm
(
delta
)
if
len
(
expected
)
>
1
:
delta
+=
0.05
*
Vec3
(
random
.
random
(),
random
.
random
(),
random
.
random
())
*
nanometer
delta
*=
0.1
*
nanometer
/
norm
(
delta
)
newPositions
.
append
(
self
.
positions
[
parent
.
index
]
+
delta
)
...
...
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