pyintervals 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyintervals-1.2.0 → pyintervals-1.2.2}/PKG-INFO +1 -1
- {pyintervals-1.2.0 → pyintervals-1.2.2}/pyproject.toml +1 -1
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/interval_handler.py +10 -7
- {pyintervals-1.2.0 → pyintervals-1.2.2}/CHANGELOG.rst +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/LICENSE +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/README.rst +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/__init__.py +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/constants.py +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/interval.py +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/py.typed +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/search.py +0 -0
- {pyintervals-1.2.0 → pyintervals-1.2.2}/src/pyintervals/time_value_node.py +0 -0
|
@@ -51,13 +51,16 @@ def _relevant_nodes(
|
|
|
51
51
|
nodes: SortedList[TimeValueNode],
|
|
52
52
|
interval: Interval,
|
|
53
53
|
) -> list[TimeValueNode]:
|
|
54
|
-
|
|
55
|
-
nodes.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
if interval.is_degenerate():
|
|
55
|
+
return [_active_node_at_time(nodes, interval.start)]
|
|
56
|
+
else:
|
|
57
|
+
return [
|
|
58
|
+
n
|
|
59
|
+
for n in nodes.islice(
|
|
60
|
+
start=nodes.index(_active_node_at_time(nodes, interval.start))
|
|
61
|
+
)
|
|
62
|
+
if n.time_point <= interval.end
|
|
63
|
+
]
|
|
61
64
|
|
|
62
65
|
|
|
63
66
|
def _area_during_interval(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|