MCPcopy Index your code
hub / github.com/pydata/xarray / _interval_to_bound_points

Function _interval_to_bound_points

xarray/plot/utils.py:569–578  ·  view source on GitHub ↗

Helper function which returns an array with the Intervals' boundaries.

(array: Sequence[pd.Interval])

Source from the content-addressed store, hash-verified

567
568
569def _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
581def _interval_to_double_bound_points(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…