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

Method remove

intervaltree/node.py:222–231  ·  view source on GitHub ↗

Returns self after removing the interval and balancing. If interval is not present, raise ValueError.

(self, interval)

Source from the content-addressed store, hash-verified

220 return self.rotate()
221
222 def remove(self, interval):
223 """
224 Returns self after removing the interval and balancing.
225
226 If interval is not present, raise ValueError.
227 """
228 # since this is a list, called methods can set this to [1],
229 # making it true
230 done = []
231 return self.remove_interval_helper(interval, done, should_raise_error=True)
232
233 def discard(self, interval):
234 """

Callers 6

test_split_overlapFunction · 0.45
test_deleteFunction · 0.45
test_emptying_iterationFunction · 0.45
srotateMethod · 0.45
pop_greatest_childMethod · 0.45

Calls 1

Tested by 3

test_split_overlapFunction · 0.36
test_deleteFunction · 0.36
test_emptying_iterationFunction · 0.36