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

Method discard

intervaltree/node.py:233–240  ·  view source on GitHub ↗

Returns self after removing interval and balancing. If interval is not present, do nothing.

(self, interval)

Source from the content-addressed store, hash-verified

231 return self.remove_interval_helper(interval, done, should_raise_error=True)
232
233 def discard(self, interval):
234 """
235 Returns self after removing interval and balancing.
236
237 If interval is not present, do nothing.
238 """
239 done = []
240 return self.remove_interval_helper(interval, done, should_raise_error=False)
241
242 def remove_interval_helper(self, interval, done, should_raise_error):
243 """

Callers 1

test_deleteFunction · 0.45

Calls 1

Tested by 1

test_deleteFunction · 0.36