MCPcopy Create free account
hub / github.com/chaimleib/intervaltree / intersection_update

Method intersection_update

intervaltree/intervaltree.py:438–445  ·  view source on GitHub ↗

Removes intervals from self unless they also exist in other.

(self, other)

Source from the content-addressed store, hash-verified

436 return IntervalTree(ivs)
437
438 def intersection_update(self, other):
439 """
440 Removes intervals from self unless they also exist in other.
441 """
442 ivs = list(self)
443 for iv in ivs:
444 if iv not in other:
445 self.remove(iv)
446
447 def symmetric_difference(self, other):
448 """

Callers 1

test_intersectionFunction · 0.80

Calls 1

removeMethod · 0.95

Tested by 1

test_intersectionFunction · 0.64