Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mrdna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tbgl
tools
mrdna
Commits
fe860000
Commit
fe860000
authored
6 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Updated dnarbd script to better handle number-of-step arguments such as '1e7'
parent
2acb5e5d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/dnarbd
+4
-4
4 additions, 4 deletions
bin/dnarbd
dnarbd/simulate.py
+2
-2
2 additions, 2 deletions
dnarbd/simulate.py
with
6 additions
and
6 deletions
bin/dnarbd
+
4
−
4
View file @
fe860000
...
@@ -15,9 +15,9 @@ parser.add_argument('-d','--directory', type=str, default=None,
...
@@ -15,9 +15,9 @@ parser.add_argument('-d','--directory', type=str, default=None,
help
=
'
Directory for simulation; does not need to exist yet
'
)
help
=
'
Directory for simulation; does not need to exist yet
'
)
parser
.
add_argument
(
'
-g
'
,
'
--gpu
'
,
type
=
int
,
default
=
0
,
parser
.
add_argument
(
'
-g
'
,
'
--gpu
'
,
type
=
int
,
default
=
0
,
help
=
'
GPU for simulation; check nvidia-smi for availability
'
)
help
=
'
GPU for simulation; check nvidia-smi for availability
'
)
parser
.
add_argument
(
'
--coarse-steps
'
,
type
=
in
t
,
default
=
1e7
,
parser
.
add_argument
(
'
--coarse-steps
'
,
type
=
floa
t
,
default
=
1e7
,
help
=
'
Simulation steps for coarse model (200 fs/step)
'
)
help
=
'
Simulation steps for coarse model (200 fs/step)
'
)
parser
.
add_argument
(
'
--fine-steps
'
,
type
=
in
t
,
default
=
1e7
,
parser
.
add_argument
(
'
--fine-steps
'
,
type
=
floa
t
,
default
=
1e7
,
help
=
'
Simulation steps for fine model (50 fs/step)
'
)
help
=
'
Simulation steps for fine model (50 fs/step)
'
)
parser
.
add_argument
(
'
--backbone-scale
'
,
type
=
float
,
default
=
1.0
,
parser
.
add_argument
(
'
--backbone-scale
'
,
type
=
float
,
default
=
1.0
,
help
=
'
Factor to scale DNA backbone in atomic model; try 0.25 to avoid clashes for atomistic simulations
'
)
help
=
'
Factor to scale DNA backbone in atomic model; try 0.25 to avoid clashes for atomistic simulations
'
)
...
@@ -59,8 +59,8 @@ if __name__ == '__main__':
...
@@ -59,8 +59,8 @@ if __name__ == '__main__':
job_id
=
"
job-
"
+
prefix
,
job_id
=
"
job-
"
+
prefix
,
directory
=
args
.
directory
,
directory
=
args
.
directory
,
gpu
=
args
.
gpu
,
gpu
=
args
.
gpu
,
coarse_steps
=
args
.
coarse_steps
,
coarse_steps
=
int
(
args
.
coarse_steps
)
,
fine_steps
=
args
.
fine_steps
,
fine_steps
=
int
(
args
.
fine_steps
)
,
backbone_scale
=
args
.
backbone_scale
backbone_scale
=
args
.
backbone_scale
)
)
...
...
This diff is collapsed.
Click to expand it.
dnarbd/simulate.py
+
2
−
2
View file @
fe860000
...
@@ -18,8 +18,8 @@ def multiresolution_simulation( model, output_name,
...
@@ -18,8 +18,8 @@ def multiresolution_simulation( model, output_name,
):
):
## Round steps up to nearest multiple of output_period, plus 1
## Round steps up to nearest multiple of output_period, plus 1
coarse_steps
=
((
coarse_steps
//
coarse_output_period
)
+
1
)
*
coarse_output_period
+
1
coarse_steps
=
((
coarse_steps
+
coarse_output_period
-
1
)
//
coarse_output_period
)
*
coarse_output_period
+
1
fine_steps
=
((
fine_steps
//
fine_output_period
)
+
1
)
*
fine_output_period
+
1
fine_steps
=
((
fine_steps
+
fine_output_period
-
1
)
//
fine_output_period
)
*
fine_output_period
+
1
ret
=
None
ret
=
None
d_orig
=
os
.
getcwd
()
d_orig
=
os
.
getcwd
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment