parameters: (self, instance, owner)
return_statement: return True, 0, ''
docstring: check if monovan integration range has reasonable value
docstring_summary: check if monovan integration range has reasonable value
docstring_tokens: check if monovan integration range has reasonable value
function: def validate(self, instance, owner):
          """ check if monovan integration range has reasonable value """
  
          if instance.monovan_run is None:
              return (True, 0, '')
  
          the_range = self.__get__(instance, owner)
          ei = instance.incident_energy
          if the_range[0] >= the_range[1]:
              return False, 2, 'monovan integration range limits = [{0}:{1}] are wrong'.format(the_range[0], the_range[1])
          if the_range[0] < -100 * ei or the_range[0] > 100 * ei:
              return False, 1, 'monovan integration is suspiciously wide: [{0}:{1}]. ' \
                               'This may be incorrect'.format(the_range[0], the_range[1])
          return True, 0, ''
function_tokens: def validate ( self , instance , owner ) : if instance . monovan_run is None : return ( True , 0 , '' ) the_range = self . __get__ ( instance , owner ) ei = instance . incident_energy if the_range [ 0 ] >= the_range [ 1 ] : return False , 2 , 'monovan integration range limits = [{0}:{1}] are wrong' . format ( the_range [ 0 ] , the_range [ 1 ] ) if the_range [ 0 ] < - 100 * ei or the_range [ 0 ] > 100 * ei : return False , 1 , 'monovan integration is suspiciously wide: [{0}:{1}]. ' 'This may be incorrect' . format ( the_range [ 0 ] , the_range [ 1 ] ) return True , 0 , ''