Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chaimleib/intervaltree
/ from_interval
Method
from_interval
intervaltree/node.py:60–65 ·
view source on GitHub ↗
:rtype : Node
(cls, interval)
Source
from the content-addressed store, hash-verified
58
59
@classmethod
60
def
from_interval(cls, interval):
61
""
"
62
:rtype : Node
63
""
"
64
center = interval.begin
65
return
Node(center, [interval])
66
67
@classmethod
68
def
from_intervals(cls, intervals):
Callers
2
add
Method · 0.80
add
Method · 0.80
Calls
1
Node
Class · 0.85
Tested by
no test coverage detected