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
63c45e3f
Commit
63c45e3f
authored
6 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Changed name of SegmentModel command for updating splines
parent
da45cd89
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
mrdna/segmentmodel.py
+5
-1
5 additions, 1 deletion
mrdna/segmentmodel.py
mrdna/simulate.py
+4
-4
4 additions, 4 deletions
mrdna/simulate.py
with
9 additions
and
5 deletions
mrdna/segmentmodel.py
+
5
−
1
View file @
63c45e3f
...
...
@@ -1416,7 +1416,11 @@ class SegmentModel(ArbdModel):
assert
(
len
(
locParticles
)
==
0
)
assert
(
len
([
b
for
s
in
self
.
segments
for
b
in
s
.
beads
])
==
0
)
def
_update_segment_positions
(
self
,
bead_coordinates
):
# TODO: rename to update_splines
def
_update_segment_positions
(
self
,
bead_coordinates
):
print
(
"
WARNING: called deprecated command
'
_update_segment_positions; use
'
update_splines
'
instead
"
)
return
self
.
update_splines
(
bead_coordinates
)
def
update_splines
(
self
,
bead_coordinates
):
"""
Set new function for each segments functions
contour_to_position and contour_to_orientation
"""
...
...
This diff is collapsed.
Click to expand it.
mrdna/simulate.py
+
4
−
4
View file @
63c45e3f
...
...
@@ -51,7 +51,7 @@ def multiresolution_simulation( model, output_name,
except
:
coordinates
=
readArbdCoords
(
'
%s.0.restart
'
%
full_output_prefix
)
output_prefix
=
"
%s-1
"
%
output_name
model
.
_
update_s
egment_position
s
(
coordinates
)
model
.
update_s
pline
s
(
coordinates
)
model
.
simulate
(
outputPrefix
=
output_prefix
,
numSteps
=
0.95
*
coarse_steps
,
**
simargs
)
else
:
output_prefix
=
"
%s-1
"
%
output_name
...
...
@@ -68,7 +68,7 @@ def multiresolution_simulation( model, output_name,
full_output_prefix
=
"
%s/%s
"
%
(
output_directory
,
output_prefix
)
simargs
[
'
timestep
'
]
=
50e-6
simargs
[
'
outputPeriod
'
]
=
fine_output_period
model
.
_
update_s
egment_position
s
(
coordinates
)
model
.
update_s
pline
s
(
coordinates
)
model
.
_clear_beads
()
model
.
_generate_bead_model
(
1
,
1
,
local_twist
=
True
,
escapable_twist
=
True
)
model
.
simulate
(
outputPrefix
=
output_prefix
,
numSteps
=
fine_steps
,
**
simargs
)
...
...
@@ -81,7 +81,7 @@ def multiresolution_simulation( model, output_name,
"""
Freeze twist
"""
output_prefix
=
"
%s-3
"
%
output_name
full_output_prefix
=
"
%s/%s
"
%
(
output_directory
,
output_prefix
)
model
.
_
update_s
egment_position
s
(
coordinates
)
model
.
update_s
pline
s
(
coordinates
)
model
.
_clear_beads
()
model
.
_generate_bead_model
(
1
,
1
,
local_twist
=
True
,
escapable_twist
=
False
)
model
.
simulate
(
outputPrefix
=
output_prefix
,
numSteps
=
fine_steps
,
**
simargs
)
...
...
@@ -94,7 +94,7 @@ def multiresolution_simulation( model, output_name,
"""
Atomic simulation
"""
output_prefix
=
"
%s-4
"
%
output_name
full_output_prefix
=
"
%s/%s
"
%
(
output_directory
,
output_prefix
)
model
.
_
update_s
egment_position
s
(
coordinates
)
model
.
update_s
pline
s
(
coordinates
)
model
.
_clear_beads
()
model
.
_generate_atomic_model
(
scale
=
backbone_scale
)
model
.
atomic_simulate
(
outputPrefix
=
output_prefix
)
...
...
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