Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
e4583787
Commit
e4583787
authored
Feb 21, 2020
by
cmaffeo2
Browse files
Made minimum automatic dimensions 1000
parent
aacf4cba
Changes
1
Show whitespace changes
Inline
Side-by-side
bin/mrdna
View file @
e4583787
...
@@ -113,7 +113,7 @@ def main():
...
@@ -113,7 +113,7 @@ def main():
model
=
read_model
(
str
(
infile
),
debye_length
=
args
.
debye_length
,
temperature
=
args
.
temperature
)
model
=
read_model
(
str
(
infile
),
debye_length
=
args
.
debye_length
,
temperature
=
args
.
temperature
)
if
args
.
dimensions
is
None
:
if
args
.
dimensions
is
None
:
dim
=
model
.
dimensions_from_structure
(
padding_factor
=
2.5
)
dim
=
[
max
(
x
,
1000
)
for
x
in
model
.
dimensions_from_structure
(
padding_factor
=
2.5
)
]
model
.
dimensions
=
dim
model
.
dimensions
=
dim
model
.
origin
=
model
.
get_center
()-
0.5
*
np
.
array
(
model
.
dimensions
)
model
.
origin
=
model
.
get_center
()-
0.5
*
np
.
array
(
model
.
dimensions
)
else
:
else
:
...
...
Write
Preview
Supports
Markdown
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