Helper function which returns an array with the Intervals' boundaries.
(array: Sequence[pd.Interval])
| 567 | |
| 568 | |
| 569 | def _interval_to_bound_points(array: Sequence[pd.Interval]) -> np.ndarray: |
| 570 | """ |
| 571 | Helper function which returns an array |
| 572 | with the Intervals' boundaries. |
| 573 | """ |
| 574 | |
| 575 | array_boundaries = np.array([x.left for x in array]) |
| 576 | array_boundaries = np.concatenate((array_boundaries, np.array([array[-1].right]))) |
| 577 | |
| 578 | return array_boundaries |
| 579 | |
| 580 | |
| 581 | def _interval_to_double_bound_points( |
no outgoing calls
no test coverage detected
searching dependent graphs…