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
1d3804df
"vscode:/vscode.git/clone" did not exist on "e3908bf5bd0cc6265bcb225d15cd8c996d4759ef"
Commit
1d3804df
authored
Aug 06, 2019
by
Andreas Krämer
Browse files
fixes for python2 and forcefield class
parent
4c9bb3de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+1
-1
wrappers/python/tests/TestCharmmFiles.py
wrappers/python/tests/TestCharmmFiles.py
+4
-4
wrappers/python/tests/systems/ions.pdb
wrappers/python/tests/systems/ions.pdb
+1
-1
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
1d3804df
...
@@ -2439,7 +2439,7 @@ class LennardJonesGenerator(object):
...
@@ -2439,7 +2439,7 @@ class LennardJonesGenerator(object):
for
atom
in
data
.
atoms
:
for
atom
in
data
.
atoms
:
self
.
force
.
addParticle
((
typeToMergedType
[
data
.
atomType
[
atom
]],))
self
.
force
.
addParticle
((
typeToMergedType
[
data
.
atomType
[
atom
]],))
self
.
force
.
setUseLongRangeCorrection
(
True
)
self
.
force
.
setUseLongRangeCorrection
(
bool
(
args
.
get
(
'useLongRangeCorrection'
,
False
))
)
self
.
force
.
setCutoffDistance
(
nonbondedCutoff
)
self
.
force
.
setCutoffDistance
(
nonbondedCutoff
)
sys
.
addForce
(
self
.
force
)
sys
.
addForce
(
self
.
force
)
...
...
wrappers/python/tests/TestCharmmFiles.py
View file @
1d3804df
...
@@ -285,13 +285,13 @@ class TestCharmmFiles(unittest.TestCase):
...
@@ -285,13 +285,13 @@ class TestCharmmFiles(unittest.TestCase):
for
residue
in
psf
.
topology
.
residues
():
for
residue
in
psf
.
topology
.
residues
():
atoms
=
[
atom
.
name
for
atom
in
residue
.
atoms
()]
atoms
=
[
atom
.
name
for
atom
in
residue
.
atoms
()]
if
residue
.
name
==
"M14"
:
if
residue
.
name
==
"M14"
:
self
.
assert
Count
Equal
(
m14
,
atoms
)
self
.
assertEqual
(
sorted
(
m14
)
,
sorted
(
atoms
)
)
elif
residue
.
name
==
"TIP3"
:
elif
residue
.
name
==
"TIP3"
:
self
.
assert
Count
Equal
(
tip3
,
atoms
)
self
.
assertEqual
(
sorted
(
tip3
)
,
sorted
(
atoms
)
)
elif
residue
.
name
==
"POT"
:
elif
residue
.
name
==
"POT"
:
self
.
assert
Count
Equal
(
pot
,
atoms
)
self
.
assertEqual
(
sorted
(
pot
)
,
sorted
(
atoms
)
)
elif
residue
.
name
==
"CLA"
:
elif
residue
.
name
==
"CLA"
:
self
.
assert
Count
Equal
(
cla
,
atoms
)
self
.
assertEqual
(
sorted
(
cla
)
,
sorted
(
atoms
)
)
else
:
else
:
self
.
assertTrue
(
False
)
self
.
assertTrue
(
False
)
...
...
wrappers/python/tests/systems/ions.pdb
View file @
1d3804df
CRYST1 12.009 12.338 11.510 90.00 90.00 90.00 P 1
CRYST1 12.009 12.338 11.510 90.00 90.00 90.00 P 1
ATOM 1 SOD SOD I 1 -5.844 1.432 3.239 1.00 0.00 ION NA
ATOM 1 SOD SOD I 1 -5.844 1.432 3.239 1.00 0.00 ION NA
ATOM 2 CLA CLA I 2 -5.605 -
3
.153 1.213 1.00 0.00 ION CL
ATOM 2 CLA CLA I 2 -5.605 -
1
.153 1.213 1.00 0.00 ION CL
END
END
\ No newline at end of file
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