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
8244403c
Commit
8244403c
authored
Oct 01, 2013
by
Robert McGibbon
Browse files
Simpler use of quantity
parent
ecd87763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrappers/python/simtk/openmm/app/desmonddmsfile.py
wrappers/python/simtk/openmm/app/desmonddmsfile.py
+3
-3
No files found.
wrappers/python/simtk/openmm/app/desmonddmsfile.py
View file @
8244403c
...
...
@@ -31,9 +31,9 @@ from simtk import openmm as mm
from
simtk.openmm.app
import
forcefield
as
ff
from
simtk.openmm.app
import
Element
,
Topology
,
PDBFile
from
simtk.openmm.app.element
import
hydrogen
from
simtk.unit
import
(
Quantity
,
nanometer
,
angstrom
,
dalton
,
from
simtk.unit
import
(
nanometer
,
angstrom
,
dalton
,
radian
,
kilocalorie_per_mole
,
kilojoule_per_mole
,
radian
,
degree
,
elementary_charge
)
degree
,
elementary_charge
)
class
DesmondDMSFile
(
object
):
...
...
@@ -126,7 +126,7 @@ class DesmondDMSFile(object):
return
top
,
positions
def
createSystem
(
self
,
nonbondedMethod
=
ff
.
NoCutoff
,
nonbondedCutoff
=
Quantity
(
value
=
1.0
,
unit
=
nanometer
)
,
def
createSystem
(
self
,
nonbondedMethod
=
ff
.
NoCutoff
,
nonbondedCutoff
=
1.0
*
nanometer
,
ewaldErrorTolerance
=
0.0005
,
removeCMMotion
=
True
,
hydrogenMass
=
None
):
'''Construct an OpenMM System representing the topology described by this dms 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