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
9fe6cd74
Commit
9fe6cd74
authored
Mar 14, 2015
by
kyleabeauchamp
Browse files
Amber DCD test uses tempfile now.
parent
875c973f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
wrappers/python/tests/TestAmberPrmtopFile.py
wrappers/python/tests/TestAmberPrmtopFile.py
+5
-1
No files found.
wrappers/python/tests/TestAmberPrmtopFile.py
View file @
9fe6cd74
import
unittest
import
os
import
tempfile
from
validateConstraints
import
*
from
simtk.openmm.app
import
*
from
simtk.openmm
import
*
...
...
@@ -291,8 +293,10 @@ class TestAmberPrmtopFile(unittest.TestCase):
simulation
.
context
.
setPositions
(
inpcrd
.
positions
)
simulation
.
context
.
setPeriodicBoxVectors
(
*
inpcrd
.
boxVectors
)
simulation
.
reporters
.
append
(
DCDReporter
(
'output.dcd'
,
1
))
# This is an explicit test for the bugs in issue #850
fname
=
tempfile
.
mktemp
(
suffix
=
'.dcd'
)
simulation
.
reporters
.
append
(
DCDReporter
(
fname
,
1
))
# This is an explicit test for the bugs in issue #850
simulation
.
step
(
5
)
os
.
remove
(
fname
)
if
__name__
==
'__main__'
:
...
...
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