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
0dd32915
"wrappers/python/vscode:/vscode.git/clone" did not exist on "51a112a336db6cc0aea1c32b90d9d0a1f262cbfd"
Commit
0dd32915
authored
Feb 27, 2012
by
Peter Eastman
Browse files
Allow boxSize argument to be a list or tuple instead of a Vec3
parent
d2a6f00c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+3
-1
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
0dd32915
...
...
@@ -165,7 +165,9 @@ class Modeller(object):
# Pick a unit cell size.
if
boxSize
is
not
None
:
box
=
boxSize
if
is_quantity
(
boxSize
):
boxSize
=
boxSize
.
value_in_unit
(
nanometer
)
box
=
Vec3
(
boxSize
[
0
],
boxSize
[
1
],
boxSize
[
2
])
*
nanometer
elif
padding
is
not
None
:
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
)
...
...
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