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

Function datafunc

test/intervaltree_methods/restructure_test.py:492–494  ·  view source on GitHub ↗
(iv, islower)

Source from the content-addressed store, hash-verified

490
491def test_chop_datafunc():
492 def datafunc(iv, islower):
493 oldlimit = iv[islower]
494 return "oldlimit: {0}, islower: {1}".format(oldlimit, islower)
495
496 t = IntervalTree([Interval(0, 10)])
497 t.chop(3, 7, datafunc)

Callers 2

chopMethod · 0.85
sliceMethod · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…