arte/contrib/interpolated_array.py
def _GetBoundingPoints(self, x):
    """Get the lower/upper points that bound x."""
    lower_point = None
    upper_point = self.points[0]
    for point  in self.points[1:]:
      lower_point = upper_point
      upper_point = point
      if x <= upper_point[0]:
        break
    return lower_point, upper_point
Get the lower/upper points that bound x.
Get the lower/upper points that bound x.
Get the lower / upper points that bound x .
def _GetBoundingPoints(self, x):
    lower_point = None
    upper_point = self.points[0]
    for point  in self.points[1:]:
      lower_point = upper_point
      upper_point = point
      if x <= upper_point[0]:
        break
    return lower_point, upper_point
def _GetBoundingPoints ( self , x ) : lower_point = None upper_point = self . points [ 0 ] for point in self . points [ 1 : ] : lower_point = upper_point upper_point = point if x <= upper_point [ 0 ] : break return lower_point , upper_point
Get the lower/upper points that bound x.
Get the lower / upper points that bound x .
"""Get the lower/upper points that bound x."""
self
x