Commit 19f3102f authored by cmaffeo2's avatar cmaffeo2
Browse files

SegmentModel.clear_strands() works for merged models

parent 2dc76a9d
...@@ -2830,10 +2830,20 @@ class SegmentModel(ArbdModel): ...@@ -2830,10 +2830,20 @@ class SegmentModel(ArbdModel):
## clear strands ## clear strands
try: try:
for s in self.strands: 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 seg in self.segments:
for d in ('fwd','rev'): try:
seg.strand_pieces[d] = [] for d in ('fwd','rev'):
seg.strand_pieces[d] = []
except:
pass
except: except:
pass pass
self.strands = strands = [] self.strands = strands = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment