parameters: (self)
return_statement: return {'Intensity': intensity, 'TargetParameter': f}
docstring: Check parameters within expected range
docstring_summary: Check parameters within expected range
docstring_tokens: Check parameters within expected range
function: def validateParams(self):
          '''Check parameters within expected range'''
          intensity = self.getParameterValue('Intensity')
          if intensity <= 0:
              message = 'Parameter Intensity in DSFinterp1DFit must be positive. Got {0} instead'.format(
                  intensity)
              logger.error(message)
              return None
          f = self.getParameterValue('TargetParameter')
          if f < self._fmin or f > self._fmax:
              message = 'TargetParameter {0} is out of bounds [{1}, {2}]. Applying penalty...'.format(
                  f, self._fmin, self._fmax)
              logger.error(message)
              return None
          return {'Intensity': intensity, 'TargetParameter': f}
function_tokens: def validateParams ( self ) : intensity = self . getParameterValue ( 'Intensity' ) if intensity <= 0 : message = 'Parameter Intensity in DSFinterp1DFit must be positive. Got {0} instead' . format ( intensity ) logger . error ( message ) return None f = self . getParameterValue ( 'TargetParameter' ) if f < self . _fmin or f > self . _fmax : message = 'TargetParameter {0} is out of bounds [{1}, {2}]. Applying penalty...' . format ( f , self . _fmin , self . _fmax ) logger . error ( message ) return None return { 'Intensity' : intensity , 'TargetParameter' : f }