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
3867d042
Commit
3867d042
authored
Jul 12, 2013
by
peastman
Browse files
Merge pull request #54 from leeping/master
Small Modeller fix
parents
6701dacc
74415dd9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+2
-3
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
3867d042
...
@@ -734,7 +734,6 @@ class Modeller(object):
...
@@ -734,7 +734,6 @@ class Modeller(object):
else
:
else
:
delta
=
Vec3
(
random
.
random
(),
random
.
random
(),
random
.
random
())
*
nanometer
delta
=
Vec3
(
random
.
random
(),
random
.
random
(),
random
.
random
())
*
nanometer
delta
*=
0.1
*
nanometer
/
norm
(
delta
)
delta
*=
0.1
*
nanometer
/
norm
(
delta
)
if
len
(
expected
)
>
1
:
delta
+=
0.05
*
Vec3
(
random
.
random
(),
random
.
random
(),
random
.
random
())
*
nanometer
delta
+=
0.05
*
Vec3
(
random
.
random
(),
random
.
random
(),
random
.
random
())
*
nanometer
delta
*=
0.1
*
nanometer
/
norm
(
delta
)
delta
*=
0.1
*
nanometer
/
norm
(
delta
)
newPositions
.
append
(
self
.
positions
[
parent
.
index
]
+
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