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
da9a3547
Commit
da9a3547
authored
Mar 13, 2012
by
Peter Eastman
Browse files
Fixed bug where tuples would sometimes turn into lists when changing their units
parent
63909299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
wrappers/python/simtk/openmm/app/amberprmtopfile.py
wrappers/python/simtk/openmm/app/amberprmtopfile.py
+5
-0
No files found.
wrappers/python/simtk/openmm/app/amberprmtopfile.py
View file @
da9a3547
...
...
@@ -72,6 +72,11 @@ class AmberPrmtopFile(object):
top
.
addBond
(
bond
[
0
],
bond
[
1
])
for
bond
in
prmtop
.
getBondsNoH
():
top
.
addBond
(
bond
[
0
],
bond
[
1
])
# Set the periodic box size.
if
prmtop
.
getIfBox
():
top
.
setUnitCellDimensions
(
tuple
(
x
.
value_in_unit
(
unit
.
nanometer
)
for
x
in
prmtop
.
getBoxBetaAndDimensions
()[
1
:
4
])
*
unit
.
nanometer
)
def
createSystem
(
self
,
nonbondedMethod
=
ff
.
NoCutoff
,
nonbondedCutoff
=
1.0
*
unit
.
nanometer
,
constraints
=
None
,
rigidWater
=
True
,
implicitSolvent
=
None
,
removeCMMotion
=
True
):
...
...
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