(self)
Check that all (adjusted) points are within bounds. Raises MonotoneBoundsError on failure.
Check that all (adjusted) points are within bounds. Raises MonotoneBoundsError on failure.
Check that all ( adjusted ) points are within bounds . Raises MonotoneBoundsError on failure .
def __check_bounds__(self):
    """ Check that all (adjusted) points are within bounds. Raises MonotoneBoundsError on failure. """
    maxtest = 1e47 if self.maxval is None else self.maxval
    mintest = -1e47 if self.minval is None else self.minval
    for (x,v) in self.points.items():
      if v > maxtest:
        raise MonotoneBoundsError(x*self.scale,v,self.maxval,"maximum")
      if v < mintest:
        raise MonotoneBoundsError(x*self.scale,v,self.minval,"minimum")
def __check_bounds__ ( self ) : maxtest = 1e47 if self . maxval is None else self . maxval mintest = - 1e47 if self . minval is None else self . minval for ( x , v ) in self . points . items ( ) : if v > maxtest : raise MonotoneBoundsError ( x * self . scale , v , self . maxval , "maximum" ) if v < mintest : raise MonotoneBoundsError ( x * self . scale , v , self . minval , "minimum" )