Commit f6b77677 authored by cmaffeo2's avatar cmaffeo2
Browse files

Improved performance for segmentmodel._getParent()

parent 83af8008
......@@ -1690,8 +1690,7 @@ class SegmentModel(ArbdModel):
def _getParent(self, *beads ):
if np.all( [b1.parent == b2.parent
for b1,b2 in zip(beads[:-1],beads[1:])] ):
if len(set([b.parent for b in beads])) == 1:
return beads[0].parent
else:
return self
......
Markdown is supported
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