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

Function _interval_to_mid_points

xarray/plot/utils.py:560–566  ·  view source on GitHub ↗

Helper function which returns an array with the Intervals' mid points.

(array: Iterable[pd.Interval])

Source from the content-addressed store, hash-verified

558
559
560def _interval_to_mid_points(array: Iterable[pd.Interval]) -> np.ndarray:
561 """
562 Helper function which returns an array
563 with the Intervals' mid points.
564 """
565
566 return np.array([x.mid for x in array])
567
568
569def _interval_to_bound_points(array: Sequence[pd.Interval]) -> np.ndarray:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…