Skip to content
GitLab
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
19f3102f
Commit
19f3102f
authored
Dec 06, 2019
by
cmaffeo2
Browse files
SegmentModel.clear_strands() works for merged models
parent
2dc76a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/segmentmodel.py
View file @
19f3102f
...
...
@@ -2830,10 +2830,20 @@ class SegmentModel(ArbdModel):
## clear strands
try
:
for
s
in
self
.
strands
:
self
.
children
.
remove
(
s
)
try
:
self
.
children
.
remove
(
s
)
except
:
pass
except
:
pass
try
:
for
seg
in
self
.
segments
:
for
d
in
(
'fwd'
,
'rev'
):
seg
.
strand_pieces
[
d
]
=
[]
try
:
for
d
in
(
'fwd'
,
'rev'
):
seg
.
strand_pieces
[
d
]
=
[]
except
:
pass
except
:
pass
self
.
strands
=
strands
=
[]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment