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

Method from_intervals

intervaltree/node.py:68–74  ·  view source on GitHub ↗

:rtype : Node

(cls, intervals)

Source from the content-addressed store, hash-verified

66
67 @classmethod
68 def from_intervals(cls, intervals):
69 """
70 :rtype : Node
71 """
72 if not intervals:
73 return None
74 return Node.from_sorted_intervals(sorted(intervals))
75
76 @classmethod
77 def from_sorted_intervals(cls, intervals):

Callers 1

__init__Method · 0.80

Calls 1

from_sorted_intervalsMethod · 0.80

Tested by

no test coverage detected