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

SegmentModel.clear_strands() works for merged models

parent 2dc76a9d
......@@ -2830,12 +2830,22 @@ class SegmentModel(ArbdModel):
## clear strands
try:
for s in self.strands:
try:
self.children.remove(s)
except:
pass
except:
pass
try:
for seg in self.segments:
try:
for d in ('fwd','rev'):
seg.strand_pieces[d] = []
except:
pass
except:
pass
self.strands = strands = []
""" Ensure unconnected ends have 5prime Location objects """
......
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