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
44325d07
"docs-source/api-python/app.rst.jinja2" did not exist on "7323ad8008dd3bbf700109fc29a8071a6e1d710f"
Commit
44325d07
authored
May 28, 2020
by
peastman
Browse files
Made some tests more robust
parent
f902295b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
wrappers/python/tests/TestMetadynamics.py
wrappers/python/tests/TestMetadynamics.py
+1
-1
wrappers/python/tests/TestSimulatedTempering.py
wrappers/python/tests/TestSimulatedTempering.py
+1
-1
No files found.
wrappers/python/tests/TestMetadynamics.py
View file @
44325d07
...
@@ -17,7 +17,7 @@ class TestMetadynamics(unittest.TestCase):
...
@@ -17,7 +17,7 @@ class TestMetadynamics(unittest.TestCase):
cv
=
CustomBondForce
(
'r'
)
cv
=
CustomBondForce
(
'r'
)
cv
.
addBond
(
0
,
1
)
cv
.
addBond
(
0
,
1
)
bias
=
BiasVariable
(
cv
,
0.94
,
1.06
,
0.02
)
bias
=
BiasVariable
(
cv
,
0.94
,
1.06
,
0.02
)
meta
=
Metadynamics
(
system
,
[
bias
],
300
*
kelvin
,
2
.0
,
5.0
,
10
)
meta
=
Metadynamics
(
system
,
[
bias
],
300
*
kelvin
,
3
.0
,
5.0
,
10
)
integrator
=
LangevinIntegrator
(
300
*
kelvin
,
10
/
picosecond
,
0.001
*
picosecond
)
integrator
=
LangevinIntegrator
(
300
*
kelvin
,
10
/
picosecond
,
0.001
*
picosecond
)
topology
=
Topology
()
topology
=
Topology
()
chain
=
topology
.
addChain
()
chain
=
topology
.
addChain
()
...
...
wrappers/python/tests/TestSimulatedTempering.py
View file @
44325d07
...
@@ -35,7 +35,7 @@ class TestSimulatedTempering(unittest.TestCase):
...
@@ -35,7 +35,7 @@ class TestSimulatedTempering(unittest.TestCase):
distances
=
[[]
for
i
in
range
(
10
)]
distances
=
[[]
for
i
in
range
(
10
)]
count
=
0
count
=
0
for
i
in
range
(
7
000
):
for
i
in
range
(
20
000
):
st
.
step
(
5
)
st
.
step
(
5
)
pos
=
simulation
.
context
.
getState
(
getPositions
=
True
).
getPositions
().
value_in_unit
(
nanometers
)
pos
=
simulation
.
context
.
getState
(
getPositions
=
True
).
getPositions
().
value_in_unit
(
nanometers
)
r
=
norm
(
pos
[
0
]
-
pos
[
1
])
r
=
norm
(
pos
[
0
]
-
pos
[
1
])
...
...
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