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
dfdffc7e
Commit
dfdffc7e
authored
Jun 19, 2012
by
Peter Eastman
Browse files
Fixed exception in Modeller.addSolvent()
parent
bf1f6f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
dfdffc7e
...
...
@@ -271,7 +271,7 @@ class Modeller(object):
maxSize
=
max
(
max
((
pos
[
i
]
for
pos
in
self
.
positions
))
-
min
((
pos
[
i
]
for
pos
in
self
.
positions
))
for
i
in
range
(
3
))
box
=
(
maxSize
+
2
*
padding
)
*
Vec3
(
1
,
1
,
1
)
else
:
box
=
topology
.
getUnitCellDimensions
()
box
=
self
.
topology
.
getUnitCellDimensions
()
if
box
is
None
:
raise
ValueError
(
'Neither the box size nor padding was specified, and the Topology does not define unit cell dimensions'
)
box
=
box
.
value_in_unit
(
nanometer
)
...
...
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